@charset "utf-8";

body{
    background-color: #f9f7e4;
}

.web-main h2,.web-main img,.text2,.explain,.tittle,.another-works1,.another-midashi,.more-botan{
    display: flex;
    justify-content: center;
}
.web-main h2{
    margin-top: 95px;
    margin-bottom: 95px;
}

.web-main img{
    margin: 0 auto;
    max-width: 1000px;
    width: 60%;
    margin-bottom:75px;
}

@media screen and (max-width: 768px) {

.web-main img{
    max-width: 900px;
    width: 80%;
    margin-bottom:65px;
}

}


@media screen and (max-width: 650px) {
    .web-main h2{
    margin-top: 55px;
    margin-bottom: 55px;
}

}

.tittle{
    max-width: 900px;
    width: 80%;
    gap: 50px;
    margin: 0 auto;
}

.box {
  display: flex;
  flex-direction: column; /* 子要素を縦に並べる */
  align-items: center;    /* 水平方向の中央揃え */
  text-align: center;     /* pタグ内のテキストも中央に寄せる場合 */
  gap: 20px;
}

.job-card {
  width: 180px; 
  height: 45px; 
  background-color: #96a147;

  /* 2. 中の文字を上下左右の真ん中に配置する */
  display: flex;
  justify-content: center; /* 左右の真ん中 */
  align-items: center;     /* 上下の真ん中 */
  
  
  /* 角丸の基本設定（左側を大きく、右下も丸く） */
  border-radius: 20px 0 20px 20px;

  /* ★ここがポイント：右上の凹みを作る */
  --mask: radial-gradient(20px at 100% 0, #0000 98%, #000);
  -webkit-mask: var(--mask);
  mask: var(--mask);
}

.line{
    display: flex;
    justify-content: center;
    max-width: 1000px;
    width: 65%;
    border: none;       
    border-top: 1px solid #f2e9a5; 
    margin: 42px auto;    
}

.sp-line{
    display: none;
}

.works01-main-explain{
    margin: 0 auto;
    padding:0 27%;
    margin-bottom: 130px;
}

.works01-main-explain p{
    line-height: 1.56;
}

.sp-box{
    display: none;
}

@media screen and (max-width: 950px) {
    .tittle{
    gap: 40px;
    }

    .line{
    width: 75%;
    }

    .works01-main-explain{
        padding:0 20%;
    }

}

@media screen and (max-width: 768px) {


    .line{
        display: none;
    }

    .sp-line{
    display: flex;
    justify-content: center;
    max-width: 550px;
    width: 100%;
    border: none;       
    border-top: 1px solid #f2e9a5; 

}


    /* 1. 全体の箱（.tittle）を真ん中に寄せる設定 */
    .tittle {
        display: flex;
        flex-direction: column; 
        gap: 10px;
        width: 90%;            /* 画面端に密着しないように */
        max-width: 500px;      /* 箱の最大幅（これによって「真ん中感」が出ます） */
        margin: 0 auto;        /* 左右中央揃え */
        align-items: center;   /* ★中身の「行」自体を中央に寄せる */
    }

    /* 2. 各行（.box, .sp-box）の設定 */
    .box, .sp-box {
        display: flex;
        flex-direction: row;    /* 横並び */
        align-items: flex-start; /* 上揃え */
        width: 100%;            /* 親の幅（500px）に合わせる */
    }

    .sp-box{
        gap: 20px;
    }

    /* 3. タイトルラベル（Job Roleなど）の設定 */
    .job-card {
        background: none;
        mask: none;
        -webkit-mask: none;
        
        /* ★ここが最重要！幅を固定することで説明文の開始位置を揃えます */
        width: 120px;           /* タイトル部分の幅を一定にする */
        flex-shrink: 0;         /* 幅が狭まらないように固定 */
        
        color: #96a147;
        font-weight: bold;
        text-align: left;       /* ラベル自体は左寄せ */
        display: block;
        height: auto;
    }

    /* 4. 説明文（右側）の設定 */
    .box p, .sp-box p {
        flex: 1;                /* 残りの幅をすべて使う */
        margin: 0;
        text-align: left;       /* 左寄せにして揃える */
        line-height: 1.6;
        padding-left: 10px;     /* タイトルとの間の余白 */
    }

    /* 不要な要素を非表示 */
    .icon-cross { display: none; }
    .works01-main-explain { display: none; }
    .sp-box { display: flex; }
    
}


@media screen and (max-width: 650px) {
      .tittle {
        
        width: 90%;           
        max-width: 400px;    
       
    }

}

@media screen and (max-width: 570px) {

    .tittle {
      
        width: 90%;           
        max-width: 350px;     
       
    }

}

@media screen and (max-width: 470px) {

    .tittle {
        
        width: 90%;  
        gap: 5px;        
        max-width: 300px;     
       
    }

    .box p, .sp-box p {
    
      font-size: 13px;
    }

}




.another-midashi{
    margin: 0 auto;
    max-width: 800px;
    width: 30%;
    margin-bottom: 70px;
}
.another-works01{
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2%;
}

.works01-name{
    color: #683c40;
    font-size: 22px;
    font-weight: bold;
    font-family: "fot-tsukuardgothic-std";
}

.works01-explain{
    color: #683c40;
    font-size: 16px;
    font-weight: normal;
    padding-right: 25px;
    padding-top: 10px;
    line-height: 1.60;
    font-family: "fot-tsukuardgothic-std";
}

.another-works01 ul{
    padding-left: 25px;
}

.another-works01 div{
    margin: 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}



@media screen and (max-width: 1000px) {
    .works01-explain{
        font-size: 14px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 920px) {

    .works01-name{
        font-size: 18px;
    }

    .works01-explain{
        font-size: 12px;
        padding-right: 16px;
    }

    .another-works01{
        gap: 1%;
    }

    .another-works01 div{
        gap: 0;
    }

    .another-midashi{
        width: 35%;
    }

}

@media screen and (max-width: 768px) {


    .another-midashi{
        margin-bottom: 80px;
        width: 40%;
    }

    .another-works01{
        grid-template-columns: repeat(2, 1fr);
        margin: 40px;
        gap: 20px;
    }

    .another-works{
        margin-top: 150px;
    }

    .another-works01 ul{
        padding-left: 15px;
    }

     .works01-name{
        font-size: 20px;
    }

    .works01-explain{
        font-size: 13px;
        padding-right: 16px;
    }
}

@media screen and (max-width: 500px) {
    .another-works01{
        grid-template-columns: repeat(2, 1fr);
        margin: 20px;
        gap: 10px;
    }

    .another-works{
        margin-top: 80px;
    }

    .another-works01 ul{
        padding-left: 12px;
    }

     .works01-name{
        font-size: 17px;
    }

    .works01-explain{
        font-size: 11px;
        padding-right: 13px;
    }
}

.more-botan{
    width: 180px; 
    height: 45px; 
    background-color: #96a147;
    

    /* 2. 中の文字を上下左右の真ん中に配置する */
    display: flex;
    justify-content: center; /* 左右の真ん中 */
    align-items: center;     /* 上下の真ん中 */
    
    
    /* 角丸の基本設定（左側を大きく、右下も丸く） */
    border-radius: 20px;
    margin: 80px auto 0;
}

.more-botan:hover {
  background-color: #666b1c; /* ここに濃い緑のカラーコードを指定 */
  color: #f9f7e4;            /* ホバー時に文字を白くするなど */;            /* ホバー時に文字を白くするなど */
  transform: translateY(-2px); 
  opacity: 1;
}





@media screen and (max-width: 768px) {

    .more-botan{
        margin: 100px auto 0;
    }
}


.works01-contact {
    background: url("../img/contact_botan.png") no-repeat center center;
    background-size: contain; /* 画像を枠内に収める */
    width: 90%;               /* スマホを考慮して広めに設定 */
    max-width: 800px;         /* PCでの最大幅 */
    aspect-ratio: 800 / 300;  /* 画像の比率を維持（重要！） */
    margin: 170px auto 0;        /* 中央寄せ */
    
    display: flex;
    align-items: center;    
    padding-left: 80px; 
    padding-top: 140px;      
    box-sizing: border-box;

    position: relative; /* z-indexを有効にするために必要 */
    z-index: 2;
}

.sp-only { display: none; }

/* 中身のテキストとボタンを包むエリア */
.contact-inner {
    display: flex;
    flex-direction: column;   /* 縦に並べる */
    gap: 20px;                /* テキストとボタンの間隔 */
}

.contact-text {
    font-size: clamp(12px, 1.5vw, 14px); /* 画面幅に合わせてサイズ変化 */
    line-height: 1.56;
    margin: 0;
}

.contact-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 190px;
    height: 45px;
    background-color: #f9f7e4;
    border: 1px solid #683c40;
    border-radius: 24px;
    text-decoration: none;    /* リンクの下線を消す */
    color: inherit;
    font-size: 14px;
}

.contact-button:hover {
  background-color: #683c40; /* ここに濃い緑のカラーコードを指定 */
  color: #f9f7e4;            /* ホバー時に文字を白くするなど */;            /* ホバー時に文字を白くするなど */
  transform: translateY(-2px); 
  opacity: 1;
}

@media screen and (max-width: 885px) {

    .works01-contact {
        padding-top: 120px;   
    }

    .contact-inner {
    gap: 10px;              
}
}

@media screen and (max-width: 768px) {
    .works01-contact {
        /* スマホ用の縦長画像に差し替え */
        background-image: url("../img/sp_top_contact_1@2x.webp"); 
        
        /* 画像の比率を左のデザイン（縦長）に合わせる */
        /* 例: 画像が 400x500 なら 400/500 */
        aspect-ratio: 350 / 450; 
        
        width: 90%;
        max-width: 500px; /* 広がりすぎないよう調整 */
        
        /* 中央配置にするため、paddingを調整 */
        padding-left: 8%;
        padding-top: 50px; /* 「相談する」の文字の下あたりに来るよう調整 */
        margin: 120px auto 0; 
        
        
    }

    .contact-inner {
        align-items: center; /* ボタンも中央に */
        gap: 35px;
        padding-top: 18%;
    }

    .contact-text {
        font-size: 15px;
        line-height: 2.0;
    }

    .sp-only {
        display: block; /* スマホのときだけ改行を有効にする */
    }
}

@media screen and (max-width: 500px) {
    
    .works01-contact {
        margin: 50px auto 0; 
    }

    .contact-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .contact-button {
        width: 160px;
        height: 38px;
    }

    .contact-top {
        margin-top: -170px;
    }

}


.works01-footer-container {
    position: relative;
    /* 重なり順を低く設定（前の要素が z-index: 2 以上、または position 指定があれば後ろに回ります） */
    z-index: -1; 
    margin-top: -320px; 
    text-align: center;
}

.works01-footer img {
    width: 100%;
    display: block;
}


.footer-nav ul{
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: -160px;
    
}

.footer-nav a{
    color:#f9f7e4; 
    font-size: 17px;
}


.copy{
  margin-top: 50px;
  text-align: center;
  font-size: 13px;
  color:#f9f7e4; 
}

@media screen and (max-width: 768px) {

    .works01-footer-container {
        margin-top: -220px; /* スマホ用にネガティブマージンを少し浅く調整（画像サイズに合わせて） */
    }


}


@media screen and (max-width: 660px) {
    

     .works01-footer-container{
        margin-top: -150px;
    }

}



@media screen and (max-width: 400px) {

       .works01-footer-container{
        margin-top: -90px;
    }

    

     
}


