/* * {
  outline: 1px solid magenta;
 } */


/* タブレット用スタイル */
/* @media screen and (min-width: 640px) and (max-width: 1023px) { 

} */

/* PC用スタイル (画面幅が1024px以上の場合) */
/* @media (min-width: 1024px) {

} */


/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;600;700;900&display=swap');



/* #region ======= 基本設定 ======= */
html{
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  color: #323232;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
  text-align: justify;
}

img {
  margin: auto;
  display: block;
}

a {
  text-decoration: none;
  color: #323232;
}

p {
  line-height: 1.3em; 
}

 /* letter-spacing: 0.1em; */


/* タブレット用スタイル (画面幅が768px以上の場合) */
@media screen and (min-width: 640px) and (max-width: 1023px) { 
  body {
    width: 100%;
    margin: 0 auto;
  }
}


/* #endregion */

/* #region ======= ユーティリティクラス ======= */


/* 大きいフォント */
.big {
  font-size: 1.5em;
}

/* 小さいフォント */
.small {
  font-size: 0.8em;
}
.bold{
  font-weight: 900;
}
/* レッドフォント */
.red {
  color: #D33939;
}
.orange {
  color: #d37d1b;
}
.green{
  color: #3B8322;
}

/* 文字の下側にマーカーを引く */
.marker{
  background:linear-gradient(transparent 60%, #f6d700 60%);
}

/* PC用スタイル (画面幅が1024px以上の場合) */
@media (min-width: 1024px) {
  .pc_size{
    max-width: 700px;
    margin: auto;
  }
}

/* #endregion */

/* #region ======= CTA関連 ======= */
.cta{
  position: relative;
}
.cta .tel{
  position: absolute;
  font-size: 9.5vw;
  text-align: center;
  top:60vw;
  right: 0;
  left: 0;
 color: #ffffff;
}
.cta .cta_bal_img{
  width: 100%;
  height: auto;
}
.cta .cta_btn_img{
  position: absolute;
  width: 90%;
  height: auto;
  top:60vw;
  right: 0;
  left: 0;
}
/* PCサイズ */
@media (min-width: 1024px) {
  .cta .cta_btn_img{
    top:420px;
  }
  .cta .tel{
    font-size: 65px;
    top:420px;
  }
}
/* #endregion */


/***************** index.html *****************/
/* #region ======= header ======= */
header{
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 5px 5px;
 }

 header .comment{
  font-size: 12px;
  color: #3B8322;
  text-align: center;
 }
 header .tel{
  font-size: 22px;
 }
 header .tel::before{
  content: "";
  background: url('../images/telaicon.webp') no-repeat center/cover;
   float: left;
   width: 16px;  /* 画像の幅 */
   height: 25px;  /* 画像の高さ */
   margin-top: 3px;
 }
header img{
 margin: 0;
}
/* #endregion */

/* #region ======= 料金 ======= */
#fee {
    padding: 50px 20px;
    background: linear-gradient(135deg, #EFF3E5 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

#fee .title_area {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

#fee .title_area .title {
    margin: 15px 0;
    font-size: 36px;
    font-weight: 900;
    color: #323232;
    position: relative;
    display: inline-block;
}

#fee .title_area .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3B8322;
}

#fee .title_area .text_01,
#fee .title_area .text_02 {
    font-size: 20px;
    margin: 10px 0;
    color: #3B8322;
    font-weight: bold;
}

/* カードのグリッドレイアウト改善 */
#fee ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

/* カードデザインの改善 */
#fee li {
    background: #ffffff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

#fee li:nth-child(1) { animation-delay: 0.1s; }
#fee li:nth-child(2) { animation-delay: 0.2s; }
#fee li:nth-child(3) { animation-delay: 0.3s; }
#fee li:nth-child(4) { animation-delay: 0.4s; }

#fee li:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#fee li h1 {
    background: linear-gradient(45deg, #3B8322, #4ca52f);
    color: #ffffff;
    text-align: center;
    font-size: 22px;
    padding: 20px;
    margin: 0;
    position: relative;
}

#fee li img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

#fee li:hover img {
    transform: scale(1.05);
}

#fee li .content_area {
    padding: 25px;
    text-align: left;
}

#fee li .content {
    font-size: 16px;
    margin: 12px 0;
    line-height: 1.6;
    color: #555;
    position: relative;
    padding-left: 20px;
}

#fee li .content::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3B8322;
    font-size: 20px;
}

/* 料金表示エリアの改善 */
#fee li .money_area {
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    padding: 25px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#fee li .market {
    font-size: 16px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 5px;
}

#fee li .arrow {
    font-size: 24px;
    color: #3B8322;
    margin: 10px 0;
    animation: bounceArrow 1s infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

#fee li .money {
    font-size: 28px;
    font-weight: bold;
    color: #d37d1b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#fee li .money .big {
    font-size: 36px;
    color: #d37d1b;
}

#fee li .money .en {
    font-size: 20px;
    position: relative;
    top: -2px;
}

/* エリア説明部分の改善 */
#fee .area {
    background: #ffffff;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out;
}

#fee .area .title {
    color: #3B8322;
    font-weight: bold;
    margin-bottom: 20px;
}

#fee .area p {
    margin-top: 20px;
    line-height: 1.8;
    color: #555;
}

/* アニメーション定義 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    #fee {
        padding: 30px 15px;
    }
    
    #fee .title_area .title {
        font-size: 28px;
    }
    
    #fee li {
        margin-bottom: 20px;
    }
}

@media (min-width: 1024px) {
    #fee .title_area {
        max-width: 800px;
        margin: 0 auto 60px;
    }
    
    #fee ul {
        padding: 0 20px;
    }
    
    #fee li:hover .content {
        color: #323232;
    }
}
/* #endregion */

/* #region ======= 危険 ======= */
#danger{
  background-color: #EAE9E5;
  padding: 30px 5px;
}
#danger .title_area{
  text-align: center;
}
#danger .title_area .title{
  font-size: 27px;
  margin-top: 15px;
  font-weight: 900;
}
#danger .text{
  margin-top: 30px;
  text-align: center;
  line-height: 1.8;
}
#danger img{
  width: 100%;
  height: auto;
  margin-top: 30px;
}
/* #endregion */

/* #region ======= 選ばれる理由 ======= */
#reason {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), 
                url('../images/reasons5.webp');
    padding: 40px 15px;
    position: relative;
}

#reason .title_area {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    opacity: 0;
    animation: scaleIn 0.8s ease forwards 0.3s;
}

#reason p {
    font-size: 20px;
    line-height: 1.6;
}

#reason .title {
    font-size: 32px;
    margin: 20px 0;
    line-height: 1.5;
    font-weight: 900;
    position: relative;
    padding-bottom: 15px;
}

#reason .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3B8322;
}

#reason ul {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#reason li {
    margin: 0;
    padding: 25px 20px;
    border: none;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

#reason li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#reason li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #3B8322;
}

#reason .text {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.8;
}

#reason li img{
    width: 100%;
    height: auto;
    margin-top: 10px;
}

#reason li .li_flex{
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #3B8322;
    background: rgba(59, 131, 34, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

#reason .li_flex .num{
    background: #3B8322;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: rotateIn 0.5s ease forwards;
}

#reason .li_flex .li_title{
    line-height: 1.5;
    font-size: 22px;
    font-weight: bold;
    color: #323232;
}

#reason .text {
    font-size: 16px;
    margin: 20px 15px;
    line-height: 1.8;
    color: #555;
}

#reason .text .green {
    color: #3B8322;
    font-weight: bold;
    background: linear-gradient(transparent 70%, rgba(59, 131, 34, 0.1) 30%);
    padding: 0 2px;
}

#reason li img{
    width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* タブレット・PC表示時のレイアウト改善 */
@media (min-width: 768px) {
    #reason li {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
        padding: 30px;
    }

    #reason li img {
        margin: 0;
        order: 2;
    }

    #reason .text_content {
        order: 1;
    }
}
/* #endregion */

/* #region ======= 他社との比較 ======= */
#comparison{
  padding: 30px 5px;
}
#comparison .title_area{
  text-align: center;
  margin-bottom: 30px;
}
#comparison p{
  font-size: 20px;
}
#comparison .title{
  font-size: 33px;
  font-weight: 900;
  margin-top: 15px;
}
/* #endregion */

/* #region ======= 解決までの流れ ======= */
#flow {
    background-image: url('../images/flow.webp');
    padding: 30px 5px;
    overflow: hidden;
}

#flow .title_area {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#flow .title_area p {
    font-size: 20px;
}

#flow .title_area .title {
    font-size: 30px;
    margin-top: 10px;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

#flow .title_area .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3B8322;
}

#flow ul {
    margin: 30px auto;
    max-width: 800px;
}

#flow li {
    width: 90%;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

/* 無料の項目用の特別スタイル */
#flow li:nth-child(1),
#flow li:nth-child(2) {
    border: 3px solid #3B8322;
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.98), rgba(239, 243, 229, 0.98));
}

#flow li:nth-child(1)::after,
#flow li:nth-child(2)::after {
    content: "無料";
    position: absolute;
    top: -15px;
    right: -15px;
    background: #d37d1b;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 無料項目テキストを強調 */
#flow li:nth-child(2) .text {
    position: relative;
    padding-bottom: 35px;
}

#flow li:nth-child(2) .text::after {
    content: "※お見積りまで完全無料！お気軽にご相談ください";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    color: #d37d1b;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}

/* タブレット・PC表示時の調整 */
@media (min-width: 768px) {
    #flow li:nth-child(1)::after,
    #flow li:nth-child(2)::after {
        top: -15px;
        right: -15px;
        font-size: 18px;
        padding: 10px 25px;
    }
    
    #flow li:nth-child(1) .text::after,
    #flow li:nth-child(2) .text::after {
        font-size: 16px;
    }
}

#flow li:hover {
    transform: translateY(-5px);
}

#flow li .flex {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #3B8322;
    padding-bottom: 10px;
}

#flow li h1 {
    color: #3B8322;
    font-size: 22px;
    margin-left: 15px;
    font-weight: bold;
}

#flow li img {
    width: 50px;
    height: auto;
    margin: 0;
}

#flow li .text_area {
    padding: 0 10px;
}

#flow li .text {
    line-height: 1.8;
    font-size: 16px;
}

#flow li .arrow {
    color: #3B8322;
    text-align: center;
    font-size: 30px;
    margin: 20px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 矢印のアニメーション修正 */
#flow li .arrow {
    animation: slideArrow 2s infinite;
}

@keyframes slideArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* タブレット・PC表示時の矢印位置修正 */
@media (min-width: 768px) {
    #flow li .arrow {
        position: absolute;
        right: -40px;
        top: 50%;
        transform: translateY(-50%);
        animation: none; /* PC表示時はアニメーションを無効化 */
    }
}

/* ステップ番号を追加 */
#flow li {
    counter-increment: flow-counter;
}

#flow li .flex::before {
    content: "STEP " counter(flow-counter);
    background: #3B8322;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    position: absolute;
    top: -10px;
    left: 20px;
}

/* スマートフォン対応 */
@media (max-width: 767px) {
    #flow li {
        width: 85%;
    }
    
    #flow li h1 {
        font-size: 18px;
    }
    
    #flow li img {
        width: 40px;
    }
}

/* タブレット・PC表示 */
@media (min-width: 768px) {
    #flow ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    #flow li {
        width: 45%;
    }
    
    #flow li .arrow {
        transform: rotate(-90deg);
        margin: 0;
        position: absolute;
        right: -40px;
        top: 50%;
    }
}
/* #endregion */

/* #region ======= お客様の声 ======= */
#voice {
    padding: 30px 5px;
    background: linear-gradient(to bottom, #ffffff, #EFF3E5);
}

#voice .title_area {
    text-align: center;
    margin-bottom: 40px;
}

#voice .title_area .title {
    font-size: 30px;
    line-height: 1.5;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#voice .title_area .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3B8322;
}

#voice .slide_content {
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

#voice .slide_content:hover {
    transform: translateY(-5px);
}

#voice .slide_content h1 {
    background-color: #3B8322;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    border-radius: 5px 5px 0 0;
    font-size: 18px;
    position: relative;
}

/* 評価星マーク追加 */
#voice .slide_content h1::after {
    content: "★★★★★";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #d37d1b;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#voice .text_area {
    padding: 40px 20px 20px;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#voice .slide_content .text {
    text-align: justify;
    line-height: 1.8;
    margin-top: 20px;
    position: relative;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

/* 引用符デザイン */
#voice .slide_content .text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 60px;
    color: #3B8322;
    opacity: 0.2;
    font-family: serif;
}

#voice .slide_content img {
    width: 578px;  /* 固定幅 */
    height: 202px; /* 固定高さ */
    margin: 0 auto 20px;
    object-fit: contain;
    display: block; /* 中央揃えのため追加 */
    max-width: 100%; /* レスポンシブ対応 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #voice .slide_content img {
        width: 100%; /* スマホ表示時は横幅100% */
        height: calc(100vw * 202 / 578); /* アスペクト比を維持 */
    }
}

#voice .slide_content img:hover {
    transform: scale(1.02); /* ホバー時に少し拡大 */
}

/* レスポンシブ対応の修正 */
@media (min-width: 768px) {
    #voice .slide_content {
        margin: 0;
    }
    
    .slider-x {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* スライダーのナビゲーション改善 */
.slider-x {
    position: relative;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.slider-x::before,
.slider-x::after {
    content: '←';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #3B8322;
    font-size: 24px;
    opacity: 0.5;
    animation: bounce-left 1s infinite;
}

.slider-x::after {
    content: '→';
    left: auto;
    right: 5px;
    animation: bounce-right 1s infinite;
}

@keyframes bounce-left {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

@keyframes bounce-right {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(5px); }
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    #voice .slide_content {
        margin: 0 30px;
    }
    
    #voice .text_area {
        padding: 40px 30px 30px;
    }
    
    #voice .slide_content img {
        width: 150px;
        height: 150px;
    }
    
    #voice .slide_content h1 {
        font-size: 20px;
    }
}
/* #endregion */

/* #region ======= 対応エリア ======= */
#area {
  padding: 40px 20px;
  border-radius: 15px;
  margin: 30px auto;
}

#area .title {
  text-align: center;
  color: #3B8322;
  font-size: 36px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

#area .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3B8322;
}


/* 都道府県リストのデザイン改善 */
.area_chart {
  background: #ffffff;
  border-radius: 10px;
  margin: 15px auto;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.area_chart summary {
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  color: #3B8322;
  list-style: none;
  display: flex;
  align-items: center;
}

.area_chart summary::before {
  content: '▶';
  margin-right: 10px;
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

.area_chart[open] summary::before {
  transform: rotate(90deg);
}

.area_chart p {
  padding: 20px;
  background: #f9f9f9;
  margin: 0;
  border-radius: 0 0 10px 10px;
  line-height: 1.8;
}

/* ホバーエフェクト */
.area_chart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  #area {
    padding: 60px 40px;
  }

  #area .title {
    font-size: 42px;
  }

  .area_chart {
    max-width: 80%;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.area_chart[open] p {
  animation: fadeIn 0.3s ease-out;
}
/* #endregion */

/* #region ======= よくある質問 ======= */
#question{
  padding: 30px 5px;
}

#question .title{
  text-align: center;
  font-size: 30px;
  color: #3B8322;
  margin-bottom: 30px;
  }
/* #endregion */

/* #region ======= footer ======= */
footer{
  background-color: #3B8322;
  color: #ffffff;
  padding: 20px 5px;
  padding-bottom: 100px;
  text-align: center;
}
/* #endregion */

/* #region ======= 固定CTA ======= */
#cta_fixed{
  position: fixed;
  bottom: 0;
}
#cta_fixed .tel_area{
 position: relative;
}
#cta_fixed .num{
  position: absolute;
  color: #ffffff;
  font-size: 37px;
  top: 0.5vw;
  left: 18vw;
 }


#cta_fixed img{
  width: 95%;
  height:auto ;
}

/* PC用スタイル */
@media (min-width: 1024px) {
  #cta_fixed .num{
    font-size: 70px;
    top: 0vw;
    left: 6.5vw;
   }
   footer{
    padding-bottom: 200px;
  }
}
/* #endregion */

/* #region ======= 動画エリア改善 ======= */
.video_area {
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, #EFF3E5 0%, #f9f9f9 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.video_area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.video_area .video_title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(45deg, #3B8322, #4ca52f);
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(59, 131, 34, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.video_area .video_title:hover {
    transform: translateY(-2px);
}

.video_area .video_frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video_area .video_frame:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* カスタム再生ボタンの改善 */
.video_area .video_frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video_area .video_frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 25px 0 25px 43.3px;
    border-color: transparent transparent transparent #ffffff;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video_area .video_frame.show-play-button::before,
.video_area .video_frame.show-play-button::after {
    opacity: 1;
}

.video_area video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video_area p {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* アニメーション */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.video_area .video_frame.show-play-button::after {
    animation: pulse 2s infinite;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .video_area {
        margin: 30px 15px;
        padding: 20px;
    }

    .video_area .video_title {
        font-size: 20px;
        padding: 12px 20px;
    }

    .video_area .video_frame {
        width: 100%;
        max-width: none;
    }

    .video_area p {
        font-size: 14px;
        padding: 0 10px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .video_area {
        margin: 40px auto;
    }

    .video_area .video_frame {
        max-width: 350px;
    }
}

@media (min-width: 1024px) {
    .video_area {
        margin: 60px auto;
    }

    .video_area:hover .video_title {
        transform: translateY(-2px);
    }
}
/* #endregion */

/* #region ======= 見積もりシミュレーター用のスタイル ======= */
.simulator-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 20px; /* スクロール時の余白を設定 */
}

.simulator-title {
    color: #3B8322;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
}

.simulator-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3B8322;
    margin: 10px auto;
}

/* プログレスバー */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #3B8322;
    transition: width 0.3s ease;
}

/* ステップスタイル */
.step-title {
    font-size: 20px;
    color: #3B8322;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #3B8322;
}

/* サービス選択グリッド */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-item {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    border-color: #3B8322;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-item.selected {
    border-color: #3B8322;
    background: rgba(59, 131, 34, 0.05);
}

.service-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.service-item .price {
    display: block;
    color: #d37d1b;
    font-weight: bold;
    margin-top: 5px;
}

/* 入力フォーム改善 */
.input-group {
    position: relative;
    margin-bottom: 20px;
    max-width: 100%;
    padding-left: 10px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #3B8322;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
}

.input-group .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    margin-top: 10px;
    margin-right: 10px;
    
}

#sizeLabel{
  padding-left: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #323232;
  margin-bottom: 10px;
  margin-top: 10px;
  display: block;
  line-height: 1.5;
}

.size-helper {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.size-helper ul {
    margin-top: 10px;
    color: #666;
}

/* ボタングルー */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.back-btn, .next-btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn {
    background: #f5f5f5;
    border: 1px solid #ccc;
}

.next-btn {
    background: #3B8322;
    color: white;
    border: none;
    flex: 1;
}

.next-btn:hover {
    background: #2d6319;
}

/* 結果表示エリア改 */
.result-area {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #3B8322;
    padding: 25px;
}

.estimate-header {
    text-align: center;
    margin-bottom: 20px;
}

.estimate-detail {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-breakdown {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.total-price {
    font-size: 24px;
    color: #3B8322;
    text-align: center;
    font-weight: bold;
}

.benefits {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.benefits li {
    color: #3B8322;
    margin-bottom: 8px;
    font-weight: bold;
}

.cta-button {
    display: block;
    background: linear-gradient(45deg, #d37d1b, #e8a44d);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-text {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

.tel-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.cta-sub {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}
/* #endregion */

/* #region ======= 追従型CTA ======= */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    animation: slideIn 0.5s ease-out;
    filter: drop-shadow(0 4px 12px rgba(211, 125, 27, 0.3));
    width: auto;
    max-width: 400px;
}

.floating-cta a {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #d37d1b, #e8a44d);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* 追従型CTAのバッジスタイルを更新 */
.floating-cta .urgent-badge {
    position: absolute;
    background: #ff4b4b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 75, 75, 0.3);
    border: 2px solid #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
    animation: pulse 2s infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* スマートフォン対応 */
@media (max-width: 767px) {
    .floating-cta {
        bottom: 15px;
        left: 10px;
        right: 10px;
        padding: 0 5px;
        max-width: none;
        width: calc(100% - 20px);
        filter: drop-shadow(0 4px 15px rgba(255, 143, 0, 0.4));
    }

    .floating-cta a {
        padding: 14px 15px;
        min-height: 62px;
        background: linear-gradient(45deg, #E67E22, #F39C12);
        border: 1.5px solid rgba(255, 255, 255, 0.3);
    }

    .floating-cta .icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    }

    .floating-cta .text {
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        flex: 1;
        min-width: 0;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        letter-spacing: 0.5px;
        color: #ffffff;
    }

    .floating-cta .tel-text {
        font-size: 24px;
        margin-top: 2px;
        font-weight: 900;
        background: linear-gradient(transparent 80%, rgba(255, 255, 255, 0.2));
        padding: 0 4px;
    
    }

    .floating-cta .urgent-badge {
        position: absolute;
        background: #ff4b4b;
        font-size: 11px;
        padding: 4px 10px;
        box-shadow: 0 2px 8px rgba(255, 75, 75, 0.5);
        top: -10px;
        right: 10px;
        transform: none;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    }

    @keyframes pulseStrong {
        0% { transform: translateX(-50%) scale(1); }
        50% { transform: translateX(-50%) scale(1.12); }
        100% { transform: translateX(-50%) scale(1); }
    }

    .floating-cta a:active {
        transform: scale(0.97);
        background: linear-gradient(45deg, #D35400, #E67E22);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* タブレット対応 */
@media (min-width: 768px) and (max-width: 1023px) {
    .floating-cta {
        max-width: 350px;
    }

    .floating-cta a {
        padding: 10px 20px;
        min-height: 52px;
    }

    .floating-cta .text {
        font-size: 13px;
        align-items: center;
        text-align: center;
    }

    .floating-cta .tel-text {
        font-size: 18px;
    }

    .floating-cta .urgent-badge {
        top: -12px;
        right: -5px;
        font-size: 12px;
        padding: 5px 12px;
        transform: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }
}

/* PC対応 */
@media (min-width: 1024px) {
    .floating-cta {
        bottom: 30px;
        right: 30px;
    }

    .floating-cta a {
        padding: 12px 30px;
        min-height: 56px;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .floating-cta .text {
        align-items: center;
        text-align: center;
    }

    .floating-cta .urgent-badge {
        top: -15px;
        right: -15px;
        font-size: 13px;
        padding: 6px 14px;
        transform: none;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}

/* アニメーション */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes attention {
    0% { transform: scale(1); filter: brightness(100%); }
    50% { transform: scale(1.05); filter: brightness(110%); }
    100% { transform: scale(1); filter: brightness(100%); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* #endregion */

/* #region ======= 選ばれる理由 ======= */
/* 既存のスタイルに追加 */

/* アニメーションのディレイ設定 */
#reason li:nth-child(1) { animation-delay: 0.2s; }
#reason li:nth-child(2) { animation-delay: 0.4s; }
#reason li:nth-child(3) { animation-delay: 0.6s; }
#reason li:nth-child(4) { animation-delay: 0.8s; }
#reason li:nth-child(5) { animation-delay: 1.0s; }

/* タブレット対応 */
@media (min-width: 768px) and (max-width: 1023px) {
    #reason {
        padding: 50px 30px;
    }

    #reason .title {
        font-size: 36px;
    }

    #reason li {
        padding: 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }

    #reason li .text_content {
        order: 1;
    }

    #reason li img {
        order: 2;
        margin: 0;
        max-width: 400px;
        width: 100%;
    }

    #reason .li_flex {
        margin-bottom: 20px;
    }
}

/* PC対応 */
@media (min-width: 1024px) {
    #reason {
        padding: 80px 50px;
        background-attachment: fixed;
    }

    #reason .title_area {
        max-width: 800px;
        margin: 0 auto 60px;
    }

    #reason .title {
        font-size: 42px;
    }

    #reason ul {
        max-width: 1200px;
        margin: 0 auto;
    }

    #reason li {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 50px;
        padding: 40px;
        margin: 0 auto 40px;
        max-width: 1000px;
    }

    #reason li:nth-child(even) {
        grid-template-columns: 0.8fr 1.2fr;
    }

    #reason li:nth-child(even) .text_content {
        order: 2;
    }

    #reason li:nth-child(even) img {
        order: 1;
    }

    #reason .text {
        font-size: 18px;
        margin: 25px 20px;
    }

    #reason .li_flex .li_title {
        font-size: 24px;
    }

    #reason .li_flex .num {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    /* ホバーエフェクトの強化 */
    #reason li {
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    #reason li:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    #reason li:hover img {
        transform: scale(1.05);
        transition: transform 0.4s ease;
    }

    #reason li:hover .li_flex {
        background: rgba(59, 131, 34, 0.1);
    }
}

/* スマートフォン最適化 */
@media (max-width: 767px) {
    #reason {
        padding: 40px 15px;
    }

    #reason .title {
        font-size: 26px;
        margin: 15px 0;
    }

    #reason li {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    #reason .text {
        font-size: 15px;
        margin: 15px 10px;
    }

    #reason .li_flex .li_title {
        font-size: 18px;
    }

    #reason li img {
        margin: 10px 0;
    }
}

/* #region ======= 対応エリア画像のレスポンシブ改善 ======= */
.area_img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* タブレット対応 */
@media (min-width: 768px) and (max-width: 1023px) {
    .area_img {
        width: 90%;
        margin: 40px auto;
    }
}

/* PC対応 */
@media (min-width: 1024px) {
    .area_img {
        width: 80%;
        margin: 50px auto;
    }

    .area_img:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
}

/* スマートフォン最適化 */
@media (max-width: 767px) {
    .area_img {
        width: 95%;
        margin: 20px auto;
        border-radius: 10px;
    }
}
/* #endregion */

/* #region ======= FV ======= */
#fv {
    position: relative;
    width: 100%;
}

#fv img {
    width: 100%;
    height: auto;
    display: block;
}

.fv_cta {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 500px;
    text-align: center;
}

.fv_cta .cta_btn_img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.fv_cta a:active .cta_btn_img {
    transform: scale(0.98);
}

/* タブレット用スタイル */
@media screen and (min-width: 640px) and (max-width: 1023px) {
    .fv_cta {
        bottom: 4%;
        width: 80%;
        max-width: 550px;
    }
}

/* PCサイズ */
@media (min-width: 1024px) {
    .fv_cta {
        bottom: 5%;
        width: 70%;
        max-width: 600px;
    }

    .fv_cta a:hover .cta_btn_img {
        transform: translateY(-3px);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    }
}
/* #endregion */

/* #region ======= ハンバーガーメニュー ======= */
.hamburger {
    display: none;
    width: 44px; /* タップ領域を広げる */
    height: 44px; /* タップ領域を広げる */
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 1000;
    cursor: pointer;
    background: #3B8322;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* メニューテキストの追加 */
.hamburger::after {
    content: "メニュー";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #3B8322;
    font-weight: bold;
    text-shadow: 0 0 4px #fff;
    white-space: nowrap;
}

.hamburger span {
    display: block;
    width: 24px; /* 線の長さを調整 */
    height: 2px;
    background-color: #fff; /* 線の色を白に */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

/* アクティブ時のスタイル */
.hamburger.active {
    background: #ff4b4b; /* アクティブ時は赤色に */
}

.hamburger.active::after {
    content: "閉じる";
    color: #ff4b4b;
}

.hamburger.active span {
    background-color: #fff;
}

.hamburger.active span:nth-child(1) {
    transform: translateX(-50%) translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* ホバー時のエフェクト */
@media (hover: hover) {
    .hamburger:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(59, 131, 34, 0.3);
    }

    .hamburger.active:hover {
        box-shadow: 0 4px 15px rgba(255, 75, 75, 0.3);
    }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger span {
        width: 22px;
    }

    .hamburger span:nth-child(1) {
        top: 12px;
    }

    .hamburger span:nth-child(2) {
        top: 19px;
    }

    .hamburger span:nth-child(3) {
        top: 26px;
    }
}

/* 小さいスマートフォン対応 */
@media (max-width: 360px) {
    .hamburger {
        width: 36px;
        height: 36px;
        right: 10px;
        top: 10px;
    }

    .hamburger span {
        width: 20px;
    }

    .hamburger span:nth-child(1) {
        top: 10px;
    }

    .hamburger span:nth-child(2) {
        top: 17px;
    }

    .hamburger span:nth-child(3) {
        top: 24px;
    }
}
/* #endregion */

/* #region ======= オーバーレイ ======= */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: block;
    }

    .header-tel {
        display: none;
    }
}
/* #endregion */

/* #region ======= ナビゲーションメニュー ======= */
.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    padding: 80px 20px 120px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

/* リストアイテムを順番に表示 */
.nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
.nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
.nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
.nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
.nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
.nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
.nav-menu.active li:nth-child(8) { transition-delay: 0.45s; }

.nav-menu a {
    display: block;
    color: #323232;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: bold;
}

.nav-menu a:not(.contact-btn a)::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 15px;
    width: 0;
    height: 2px;
    background: #3B8322;
    transition: width 0.3s ease;
}

.nav-menu a:not(.contact-btn a):hover {
    color: #3B8322;
    background: rgba(59, 131, 34, 0.1);
}

.nav-menu a:not(.contact-btn a):hover::after {
    width: calc(100% - 30px);
}

/* スクロールバーのカスタマイズ */
.nav-menu::-webkit-scrollbar {
    width: 5px;
}

.nav-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: #3B8322;
    border-radius: 5px;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .nav-menu {
        width: 280px;
        padding: 70px 15px 100px;
    }

    .nav-menu a {
        padding: 10px 12px;
    }
}

/* 小さいスマートフォン対応 */
@media (max-width: 360px) {
    .nav-menu {
        width: 260px;
        padding: 60px 10px 90px;
    }
}

/* 横向き対応 */
@media (max-height: 600px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 60px;
        padding-bottom: 80px;
    }
}
/* #endregion */

/* #region ======= ナビゲーションメニューのCTAボタンスタイル ======= */
.nav-menu .contact-btn {
    position: sticky;
    bottom: 20px;
    margin-top: 40px;
    padding: 0;
    background: linear-gradient(45deg, #d37d1b, #e8a44d);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(211, 125, 27, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.nav-menu .contact-btn::before {
    content: "今なら出張見積り無料";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4b4b;
    color: #fff;
    padding: 6px 20px;
    font-size: 13px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 75, 75, 0.3);
    animation: pulse 2s infinite;
    white-space: nowrap;
    z-index: 2;
}

.nav-menu .contact-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

.nav-menu .contact-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(211, 125, 27, 0.3);
}

.nav-menu .contact-btn a {
    color: white;
    border: none;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.nav-menu .contact-btn .comment {
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.nav-menu .contact-btn .comment::after {
    content: "24時間対応可能";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    opacity: 0.9;
    width: 100%;
}

.nav-menu .contact-btn .tel {
    font-size: 28px;
    font-weight: 900;
    margin-top: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-menu .contact-btn .tel::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../images/tell.png') no-repeat center/contain;
    margin-right: 5px;
    filter: brightness(0) invert(1);
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .nav-menu .contact-btn {
        margin: 35px 15px 30px;
        width: calc(100% - 30px);
    }

    .nav-menu .contact-btn::before {
        top: -22px;
        font-size: 12px;
        padding: 5px 15px;
    }

    .nav-menu .contact-btn .comment {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .nav-menu .contact-btn .comment::after {
        bottom: -16px;
        font-size: 10px;
    }

    .nav-menu .contact-btn .tel {
        font-size: 22px;
        margin-top: 18px;
    }

    .nav-menu .contact-btn .tel::before {
        width: 20px;
        height: 20px;
    }

    .nav-menu .contact-btn a {
        padding: 15px 10px;
    }
}

/* 小さいスマートフォン対応 */
@media (max-width: 360px) {
    .nav-menu .contact-btn {
        margin: 30px 10px 25px;
        width: calc(100% - 20px);
    }

    .nav-menu .contact-btn .tel {
        font-size: 20px;
    }

    .nav-menu .contact-btn a {
        padding: 12px 8px;
    }
}

/* 横向き対応 */
@media (max-height: 600px) and (orientation: landscape) {
    .nav-menu .contact-btn {
        bottom: 10px;
    }
}
/* #endregion */

/* PCサイズのデフォルト設定 */
.hamburger {
    display: none;
}

.nav-menu {
    display: none;
}

/* スマートフォン対応の基本設定 */
@media (max-width: 768px) {
    /* ハンバーガーメニューの表示 */
    .hamburger {
        display: block;
        position: fixed;
        right: 15px;
        top: 15px;
        z-index: 1000;
    }

    /* ヘッダーの電話番号を非表示 */
    .header-tel {
        display: none;
    }

    /* ナビゲーションメニューの表示設定 */
    .nav-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        right: -100%;
        transition: all 0.3s ease;
    }

    /* アクティブ時の表示 */
    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        right: 0;
    }

    /* オーバーレイの調整 */
    .overlay {
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .overlay.active {
        visibility: visible;
        opacity: 1;
    }
}

/* 小さいスマートフォン対応の調整 */
@media (max-width: 360px) {
    .hamburger {
        right: 10px;
        top: 10px;
    }

    .nav-menu {
        width: 260px;
    }
}

/* 横向き対応の調整 */
@media (max-height: 600px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 60px;
    }
}

/* フォームのコンテナスタイル */
.contact-form {
    max-width: 100%;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto;
}

/* フォームのヘッダー部分 */
.contact-form h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* バッジのコンテナ */
.form-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* 各バッジのスタイル */
.form-badges span {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.urgent-badge {
    background-color: #ff6b6b;
    color: white;
}

.free-badge {
    background-color: #4CAF50;
    color: white;
}

.secure-badge {
    background-color: #2196F3;
    color: white;
}

/* プログレスバー */
.form-progress {
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-form {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* フォームグループ */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* ラベル */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* 必須・任意マーク */
.required, .optional {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.required {
    background-color: #ff6b6b;
    color: white;
}

.optional {
    background-color: #6c757d;
    color: white;
}

/* 入力フィールド */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* 日付オプション */
.date-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* プライバシーポリシー同意 */
.form-privacy {
    margin: 2rem 0;
    text-align: center;
}

.form-privacy label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 信頼性指標 */
.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    width: 16px;
    height: 16px;
}

/* 送信ボタン */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #ff5252;
}

.btn-main-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-sub-text {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* フォーム注釈 */
.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form {
        padding: 1rem;
    }

    .form-badges {
        /* flex-direction: column; */
        align-items: center;
    }

    .form-badges span {
        width: 100%;
        text-align: center;
    }

    .trust-indicators {
        padding: 0.5rem;
    }
}

/* 入力フィールドのフォーカス時のスタイル */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* フォーム用スタイル */
.contact-form, .estimate-notes {
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
}

.contact-form {
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-form h3 {
    font-size: 1.4rem;
    color: #27ae60;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #27ae60;
    border-radius: 3px;
}

.form-intro {
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
}

.required, .optional {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
    border-radius: 4px;
    font-weight: normal;
}

.required {
    background-color: #e74c3c;
    color: white;
}

.optional {
    background-color: #7f8c8d;
    color: white;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-top: 5px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
    outline: none;
    background: #fff;
}

.date-options {
    margin: 15px 0;
    display: flex;
    gap: 20px;
    width: 100%;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
}

.form-privacy {
    margin: 25px auto;
    text-align: center;
    width: 100%;
}

.form-privacy label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.form-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
}

.form-privacy a {
    color: #2980b9;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-privacy a:hover {
    color: #27ae60;
}

.submit-btn {
    width: 100%;
    max-width: 400px;
    margin: 25px auto 15px;
    display: block;
    padding: 16px;
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover:before {
    left: 100%;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 15px;
}

.form-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.urgent-badge, .free-badge, .secure-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgent-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.free-badge {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    color: white;
}

.secure-badge {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
}

.form-progress {
    margin-bottom: 25px;
    width: 100%;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #f1f1f1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-form {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    width: 0;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.progress-text {
    text-align: right;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.trust-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.btn-main-text {
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
}

.btn-sub-text {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.9;
}

/* バリデーション関連 */
/* 削除しました */

@keyframes highlight {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.reminder-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

/* 送信中と完了時のスタイル */
.loading-indicator {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 3rem;
    color: #27ae60;
    background-color: white;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 3px solid #27ae60;
    animation: scaleIn 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.form-success {
    text-align: center;
    padding: 30px 20px;
}

.form-success h3 {
    color: #27ae60;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.next-steps {
    margin-top: 25px;
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
}

.steps-list {
    text-align: left;
    padding-left: 20px;
    margin: 15px 0 25px;
}

.steps-list li {
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
    padding-left: 10px;
}

.steps-list li:before {
    content: '✓';
    color: #27ae60;
    position: absolute;
    left: -15px;
    font-weight: bold;
}

/* スマホ対応 */
@media (max-width: 767px) {
    .contact-form, .estimate-notes {
        width: 95%;
        padding: 20px;
        margin: 15px auto;
    }
    
    .trust-item {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
    
    .form-badges {
        gap: 8px;
        padding: 0 10px;
    }
    
    .urgent-badge, .free-badge, .secure-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
        flex: 0 1 auto;
    }
    
    .btn-main-text {
        font-size: 1rem;
    }
    
    .form-success {
        padding: 20px 15px;
    }
    
    .form-success h3 {
        font-size: 1.2rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .date-options {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group input[type="date"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
        width: 100%;
    }
}

/* モーダル用のスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 20px auto;
    padding: 25px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background: #219653;
}

.modal h1 {
    color: #27ae60;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #27ae60;
}

.modal h2 {
    color: #2c3e50;
    margin-top: 30px;
    font-size: 20px;
    padding-left: 10px;
    border-left: 4px solid #27ae60;
}

.modal p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.6;
}

.modal ul {
    padding-left: 20px;
}

.modal li {
    margin: 10px 0;
}

@media (max-width: 767px) {
    .modal-content {
        margin: 10px;
        padding: 20px;
        width: calc(100% - 20px);
        max-height: 90vh;
    }

    .modal h1 {
        font-size: 20px;
    }

    .modal h2 {
        font-size: 18px;
    }
}

/* SVGアイコンのスタイル */
.trust-icon {
    vertical-align: middle;
    margin-right: 8px;
    transition: transform 0.3s ease;
    /* SVGの色を継承させる */
    color: #27ae60;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .trust-item:hover .trust-icon {
        transform: none;
    }
}

.estimate-notes {
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .contact-form, .estimate-notes {
        width: 95%;
        padding: 20px;
        margin: 15px auto;
    }
    
}