@charset "utf-8";

/* タブレット用 */
@media (max-width: 1080px) {


}

/* レスポンシブ */
@media (max-width: 900px) {
  .formula-wrapper { flex-direction: column; }
  .formula-container { flex-direction: column; width: 100%; }
  .solid-orange { width: 100%; height: auto; writing-mode: horizontal-tb; padding: 15px; }
  .operator { transform: rotate(90deg); margin: 10px 0; }
}



/* スマホ用 */
@media (max-width: 768px) {

	.hidden-phone{
		display: none!important;
	}
	.visible-phone{
		display: block!important;
	}

	body {
		-webkit-text-size-adjust: 100%;
		margin: 0;
	}

	.content{
		width: 100%;
	}
	.inner{
		padding:0 10px;
	}

  .spImg{
    display: block;
  }
  .pcImg{
    display: none;
  }
  .mainTxt{
    display: none;
  }
  .point3{
    display: none;
  }
  .problem {
      padding: 20px 10px;
    }
  .problem .flex{
    flex-direction: column;
    gap: 20px;
  }
  .problem h2{
    font-size: 25px;
    margin-bottom: 10px;
  }
  .txtBox{
    width: 100%;
  }
  .txtBox li{
    font-size: 16px;
    padding: 10px;
  }
  .problem .imgBox{
    flex: auto;
  }
  .problem .imgBox img{
    width: 30%;
  }

  .line_o{
    padding: 15px 0;
  }
  .line_o p{
    font-size: 22px;
  }
  .line_w{
    padding: 20px 0;
  }
  .line_w p{
    font-size: 22px;
  }
  .lineImg{
    bottom: -45px;
    width: 70px;
  }
 .breakdown h3{
    font-size: 15px;
    margin-bottom: 10px;
  }
  .breakdown h3 + p{
    font-size: 19px;
  }

  .price-container{
    width: 100%;
  }
  .price-item{
    width: 330px;
    height: 330px;
    padding: 20px;
    justify-content: space-around;
  }
  .number{
    font-size: 80px;
    left: 15px;
  }
  .price-item .icon{
    height: 90px;
  }
  .price-item .icon img{
    height: 100%;
    margin-bottom: 0;
  }
  .price-item .title{
    height: 55px;
    font-size: 20px;
  }
  .description{
    font-size: 13px;
  }
  .badge{
    width: 80px;
    height: 80px;
    right: -25px;
    bottom: 10px;
  }
  .badge.bottom-right{
    bottom: -5px;
    font-size: 11px;
  }
  .badge::before{
    left: 0;
  }
  .price-item:nth-child(even) .badge{
    font-size: 14px;
  }

  .message-container{
    padding: 15px 10px;
  }


  .wave-divider {
    height: 60px; /* 波を少し低く */
  }
  .person-image {
    height: 150px;
  }





  .price-items { flex-wrap: wrap; justify-content: center; }
  .price-items .item { min-width: 45%; margin-bottom: 5px; }
  .plus { display: none; } /* スマホでは＋を隠すか調整 */


  .formula-section {
    padding: 40px 15px; 
  }

  .formula-wrapper {
    flex-direction: column;
    gap: 0;
  }

.label-total {
    flex-direction: column;
    gap: 5px;              
    width: 100%;
    align-items: center;   
    margin-bottom: 10px; 
  }

  .vertical-text {
    writing-mode: horizontal-tb;
    height: auto;
    padding: 10px 30px;         
    font-size: 18px;
    width: 100%;
    display: inline-block;      
    border-radius: 50px;        
  }

  .equal {
    transform: rotate(90deg);   
    font-size: 28px;
    line-height: 1;
    margin-top: 5px;
  }

  /* 計算式コンテナの調整 */
  .formula-container {
    flex-direction: column; /* 内部要素を縦並びに */
    padding: 30px 15px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .formula-item {
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
  }

  /* ステップ番号の位置調整 */
  .step-num, 
  .step-num.num01, 
  .step-num.num02, 
  .step-num.num03 {
    top: -15px;
    left: 10px; /* 全て左上に統一 */
  }

  /* 1. 基本料金のボックス */
  .solid-orange {
    writing-mode: horizontal-tb; /* 縦書きを解除 */
    padding: 15px;
    font-size: 18px;
    min-height: 50px;
  }

  /* 2・3 共通調整 */
  .gray-bg {
    padding: 40px 10px 20px !important;
  }

  .header-orange {
    width: 80% !important;
    font-size: 16px !important;
    padding: 5px 10px;
  }

  /* 内部の計算グリッドをスマホ最適化 */
  .calc-row {
    grid-template-columns: 1fr; /* 1カラムに変更 */
    gap: 5px;
    padding: 10px;
    margin: 5px 0;
    text-align: center;
  }

  .item-large .calc-row {
    grid-template-columns: 1fr; /* スマホでは全幅 */
  }

  .item-large .white-box,
  .item-large .symbol,
  .item-large .text-label {
    grid-column: auto; /* グリッド配置をリセット */
    white-space: normal; /* 折り返しを許可 */
  }

  .symbol {
    margin: 5px 0;
    line-height: 1;
  }

  /* 演算子（＋）の向きと位置 */
  .operator {
    width: 100%;
    height: 40px;
    font-size: 24px;
    margin: 10px 0;
  }
  
  .inner-grid.single {
    gap: 5px;
  }





  .message-text {
    font-size: 16px;
  }
  .message-container {
    width: 90%;
    padding: 30px 10px;
    margin-bottom: 75px;
  }
  .message-container::after{
    height: 170px;
  }
  .solImg img{
    width: 80px;
    left: 30px;
    top: -70px;
  }
  .price-container {
    flex-direction: column;
    align-items: center;
  }


  .sol{
    padding-top: 30px;
  }

  .sol .solTit{
    font-size: 25px;
    margin-bottom: 10px;
  }
  .solSubTit{
    font-size: 25px;
  }
  .solTxt{
    font-size: 16px;
    padding: 0 10px;
  }
  .solBox{
    flex-direction: column-reverse;
    padding: 0 10px 80px;
  }
  .solImg{
    width: 100%;;
  }
  .solImgBox{
    width: 100%;
  }
  .solImgBox img{
    width: 70%;
  }
  .solTxtBox{
    padding-left: 0;
    text-align: center;
  }
  .solSubTit span{
    font-size: 35px;
  }
  .solTxtBox p{
    font-size: 16px;
  }  
  .sol02 img{
    right: 10%;
    left: auto;
    width: 70px;
  }
  .merit-header{
    padding-top: 30px;
    padding-bottom: 110px;
  }
  section h2{
    font-size: 25px;
  }

  .meritImgBox{
    width: 100%;
  }
  .merit-list{
    max-width: 100%;
    padding: 0 10px;
  }
  .merit-title{
    margin-bottom: 55px;
  }
  .meritImgBox img{
    width: 55px;
    top: -65px;
    left: 25px;
  }
  .merit-list li{
    font-size: 16px;
    padding: 10px;
  }
  .sub-message{
    font-size: 16px;
  }
  .comparison-title{
    font-size: 20px;
  }
  .house-visual{
        clip-path: polygon(0% 100px, 50% 0%, 100% 100px, 100% 100%, 0% 100%);
        padding-top: 80px;
  }
  .comparison-desc{
    font-size: 16px;
    padding: 0 10px;
    margin-bottom: 30px;
  }
  .house-image-placeholder{
    padding: 0 10px;
  }
  .house-image-placeholder img{
    width: 100%;
  }
  .footer-summary{
    padding: 0 10px;
    font-size: 16px;
    padding-bottom: 60px;
  }

  .env {
    padding-bottom: 80px;
  }
  .env .secInner{
    padding: 0px 0 55px;
    max-width: 100%;
  }
  .env svg{
    top: -88px;
    height: 120px;
  }
  .env .secTit{
    font-size: 25px;
    margin-bottom: 10px;
  }
  .envTxt{
    font-size: 16px;
    margin-left: 10px;
    padding-top: 80px;
    font-weight: normal;
  }
  .envImgBox{
    width: 100%;
    right: 0;
  }

  .lineBox{
    width: 95%;
    right: 0;
    left: 0;
    bottom: -100px;
    z-index: 9;
  }
  .lineBox p{
    font-size: 16px;
  }


  /* お問い合わせ */
  .faq-section{
    padding: 100px 10px 0;
  }
  .faq-title{
    margin-bottom: 15px;
  }
  .faq-list{
    width: 100%;
  }
  .faq-item .q{
    font-size: 16px;
  }
  .faq-item .q span{
    margin-right: 0;
  }
  .faq-item .a,
  .faq-item.open .a{
    font-size: 14px;
    padding: 0;
  }
  .faq-item::after{
    right: 0;
    font-size: 22px;
    top: 22px;
  }
  .faq-item .q span,
  .faq-item .a span{
    font-size: 22px;
  }

    /* line */
  .line-label{
    font-size: 20px;
    top: -10px;
  }
  .btn-orange{
    display: block;
    font-size: 24px;
    padding: 15px 0;
  }

  /* footer */
  .site-footer{
    padding: 20px 0 0;
  }
  .footer-flex{
    width: 100%;
    padding: 0 10px;
        flex-direction: column;
  }
  .company-name{
    font-size: 25px;
  }
  .address{
    font-size: 16px;
  }
  .footer-contact{
    text-align: center;
    max-width: 100%;
  }
  .info-badge{
    font-size: 18px;
  }
  .tel-number{
    font-size: 50px;
  }
  .info-row{
    margin-bottom: 10px;
  }
  .mail-address{
    font-size: 25px;
  }
  .hours{
    font-size: 14px;
  }
  .hours-hidden{
    display: none;
  }
  .brand-footer{
    padding: 30px 0;
    margin: 30px auto 0;
  }
  .sns-links{
    gap: 30px;
    align-items: center;
  }
  .sns-icon.sns-note{
    width: 80px;
    height: auto;
  }

  .main-logo img{
    width: 200px;
  }
  .sns-icon{
    height: 30px;
    margin-bottom: 0;
  }
  .sns-id{
    display: none;
  }
  .copy{
    padding: 15px 0;
  }
  .copy p{
    width: 100%;
    font-size: 10px;
  }


}













