/* ================================
   基本設定（背景・フォント・全体設定）
================================ */
body {
    background-color: #fffdf5;
}

main.pain {
    max-width: 1400px;
    margin: 0 auto;
}

.pain-content-title,
.pain-content-text,
.pain-content-exp,
.skin-content-group,
.skin-content-group p{
    font-family: "shippori-mincho", sans-serif;
    font-weight: 500;
    font-style: normal;
}

/* ================================
   テキスト関連（フォントサイズ・行間）
================================ */
.pain p {
    font-size: 18px;
}

@media screen and (max-width: 1000px) {
    .pain p {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .pain p {
        font-size: 15px;
        line-height: 30px
    }

    .pain-title-container {
        padding: 10px 20px;
    }
}

/* ================================
   ファーストビュー（トップ画像＋タイトル）
================================ */
.pain-fv {
    display: flex;
    position: relative;
    width: 100%;
    height: 80vh;
    margin: 0 0 100px 0;
    overflow: hidden;
}

.pain-fv-img-container {
    width: 90%;
    height: 100%;
    border-top-right-radius: 90px;
    border-bottom-right-radius: 90px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.pain-fv-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.89);
}

/* タイトルコンテナ */
.pain-fv-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 10%;
    writing-mode: vertical-rl;
    margin: 0 auto;
}

.pain-title-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 0;
    left: 0;
    text-align: center;
    background-color: #fffdf5;
    padding: 20px 40px;
    border-top-right-radius: 20px;
}

.pain-semi-title {
    font-size: 19px;
}

/* タイトルの装飾 */
.pain-title {
    font-size: 20px;
    letter-spacing: 7px;
    font-weight: normal;
}

.pain-title::before,
.pain-title::after {
    display: block;
    content: '';
    position: absolute;
    width: 19px;
    height: 19px;
    background: url(../img/fv-radius-jenerator.svg);
}

.pain-title::before {
    top: -19px;
    left: 0;
}

.pain-title::after {
    bottom: 0;
    right: -19px;
}

/* ================================
   コンテンツ（説明文・レイアウト）
================================ */
.pain-content1 {
    border-radius: 20px;
    width: 750px;
    text-align: left;
    margin: 0 auto;
}
.pain-content-title {
    display: block;
    color: #303030;
    font-weight: 1000;
    font-size: 19px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: left;
    width: 100%;
    text-wrap: nowrap;
}

.pain-content-title::before {
    content: "";
}

.pain-content-title span {
    display: block;
}

.pain-content-text {
    display: block;
    text-align: left;
    width: 100%;
}

.pain-content-text-title {
    font-size: 20px;
}

.pain-content-text p {
    margin-bottom: 13px; /* pタグの間隔を開ける */
    line-height: 1.2; /* 行間を広げて読みやすく */
}

.pain-content-text p:last-child {
    margin-bottom: 0; /* 最後のpだけ余白なしにする */
}

.pain-content-text ul {
    list-style: circle;
}

.pain-content-text ul li {
    font-size: 18px;
}

.pain-content-group {
    line-height: 36px;
    margin: 50px;
}

/* メディアクエリ（コンテンツの調整） */
@media screen and (max-width: 768px) {

    .pain-title-container {
        padding: 10px 20px;
    }

    .pain-title {
        font-size: 20px;
        letter-spacing: 7px;
    }
    
    .pain-title::before,
    .pain-title::after {
        display: block;
        content: '';
        position: absolute;
        width: 19px;
        height: 19px;
        background: url(../img/fv-radius-jenerator.svg);
    }

    .pain-content-title {
        font-size: 18px;
    }

    .pain-content .pain-content-text {
        padding: 0 50px;
    }

    .pain-content-exp {
        width: 400px;
    }

    .pain-content1 {
        border-radius: 20px;
        width: 80%;
        text-align: left;
        margin: 0 auto;
    }
    
    .pain-content-title {
        display: block;
        color: #303030;
        font-weight: 1000;
        font-size: 18px;
        border-radius: 10px;
        margin: 30px 0;
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .pain-fv {
        height: 400px;
    }

    .pain-content .pain-content-text {
        padding: 0 20px;
    }

    .pain-content1 {
        border-radius: 20px;
        width: 90%;
        text-align: left;
        margin: 0 auto;
    }

    .pain-content-group {
margin: 0;
    }
}
/* ================================
   セクション装飾（背景・リスト・ボックス）
================================ */
.pain-content-exp {
    text-align: center;
    width: 800px;
    margin: 100px auto;
}

.pain-content-exp p {
    border-bottom: 1px solid #303030;
    text-align: center;
    display: inline;
    margin: 0 auto;
}

.pain-content-exp ul {
    background-color: #eaeaea;
    padding: 40px 0 40px 60px;
    line-height: 30px;
    list-style: circle;
    text-align: left;
}

.pain-content-exp ul li {
    font-size: 17px;
}

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

    .pain-content-exp {
        text-align: center;
        width: 500px;
        margin: 50px auto;
    }
    
    .pain-content-exp p {
        border-bottom: 1px solid #303030;
        text-align: center;
        display: inline;
        margin: 0 auto;
    }
    
    .pain-content-exp ul {
        background-color: #eaeaea;
        padding: 30px;
        line-height: 30px;
        list-style: circle;
        text-align: left;
    }
    
    .pain-content-exp ul li {
        font-size: 17px;
    }
    
    
}


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

    .pain-content-exp {
        text-align: center;
        width: 100%;
        margin: 40px auto;
    }
    
    .pain-content-exp p {
        border-bottom: 1px solid #303030;
        text-align: center;
        display: inline;
        margin: 0 auto;
        font-size: 17px;
    }
    
    .pain-content-exp ul {
        background-color: #eaeaea;
        padding: 20px;
        line-height: 30px;
        list-style: circle;
        text-align: left;
    }
    
    .pain-content-exp ul li {
        font-size: 17px;
    }
}

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

    .pain-content-exp {
        text-align: center;
        width: 100%;
        margin: 50px auto;
    }
    
    .pain-content-exp p {
        border-bottom: 1px solid #303030;
        text-align: center;
        display: inline;
        margin: 0 auto;
        font-size: 15px;
    }
    
    .pain-content-exp ul {
        background-color: #eaeaea;
        padding: 20px;
        line-height: 30px;
        list-style: circle;
        text-align: left;
    }
    
    .pain-content-exp ul li {
        font-size: 15px;
    }
}

/* ================================
   画像付きテキストエリア
================================ */
.pain-content-text1-img {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 90px;
    border-bottom-left-radius: 90px;
    overflow: hidden;
}

.pain-content-text1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   装飾用の背景要素
================================ */
.pain-bg1 {
    width: 30vw;
    height: 30vw;
    position: absolute;
    left: 15%;
    top: 250%;
    background-color: #ffdfb83b;
    border-radius: 30vw;
    z-index: -1;
}

.pain-bg2 {
    width: 15vw;
    height: 15vw;
    position: absolute;
    background-color: #ffdfb83b;
    right: 15%;
    border-radius: 15vw;
    bottom: -50%;
    z-index: -1;
}

.pain-bg3 {
    width: 15vw;
    height: 15vw;
    position: absolute;
    background-color: #ffdfb83b;
    right: 15%;
    border-radius: 15vw;
    top: 80%;
    z-index: -1;
}

/* ================================
   お問い合わせボタン
================================ */
.contact--btn-container {
    position: relative;
    margin: 0 0 0 0;
    padding: 120px 0 100px 0;
    width: 100%;
    background: url(../img/hashimotoyakkyoku-contact-bg.webp);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    border-radius: 20px;
}

.contact--btn {
    width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: #fffdf5;
    padding: 50px 0;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact--btn-text {
    margin: 0 0 0 150px;
    font-size: 18px;
}

.contact--btn img {
    margin: 0 80px 0 0;
    width: 25px;
    height: 25px;
}

.contact--btn:hover {
    background-color: #c8c8c8;
    transition: 0.6s;
}

/* メディアクエリ（ボタンのサイズ調整） */
@media screen and (max-width: 768px) {
    .contact--btn-container {
        padding: 80px 0 60px 0;
    }

    .pain-title {
        letter-spacing: 4px;
        font-size: 18px;
    }

    .contact--btn {
        width: 300px;
        padding: 20px 0;
    }

    .contact--btn-text {
        margin: 0 0 0 50px;
        font-size: 16px;
    }

    .contact--btn img {
        margin: 0 30px 0 0;
        width: 15px;
        height: 15px;
    }
}