@charset "utf-8";

div.main h2{
	border-bottom: 1px solid #635239;
    margin-bottom: 1em;
    padding-bottom: 1em;
}

div.clenchconta{
    margin: 50px 0;
}

div.clenchcontc table{
    width: 100%;
    border-collapse: collapse;
}
div.clenchcontc table tr th,
div.clenchcontc table tr td{
    width: 200px;
    padding: 10px;
    border: 1px solid #898072;
}

div.clenchconte{
    margin-bottom: 100px;
    overflow-x: auto; /* 横スクロール可能にする */
    width: 100%; /* 親要素の幅いっぱいに */
}

div.clenchconte table{
    width: 100%;
    max-width: 100%; /* はみ出し防止 */
    text-align: left;
    border-collapse: collapse;
}
div.clenchconte table tr th,
div.clenchconte table tr td{
    width: 50%;
    padding: 10px;
    border:1px solid #898072;
    text-align: center;
}

div.clenchkinds{
    margin: 50px 0;
}
div.clenchkblock{
    position: relative;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}
div.noritakeimg{
    display: flex;
    gap: 4%;
    width: 100%;
}
div.noritakeimg img{
    width: 48%;
}
div.clenchcontb ul{
    padding-left: 1em;
}
div.clenchcontb ul li{
    font-weight: bold;
}


div.subpwrap::after {
    content: "";
    display: block;
    width: 100%;
    background: #efece9;
    clip-path: polygon(0 15%, 100% 0%, 100% 85%, 0% 100%);
    position: absolute;
    left: 0;
    z-index: 0;
}


/* セクション全体のデザイン */
.custom-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    color: #635239;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(243, 235, 225, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

/* コンテンツの配置 */
.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* 画像（左側に大きく配置） */
.section-img {
    width: 100%;
    max-width: 800px;
}

.section-img img {
    width: 100%;
    height: auto;
}

/* 縦書きのタイトル（右側に配置） */
.vertical-title {
    font-size: 28px;
    font-weight: bold;
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright;
    margin-left: 40px;
}

/* 画像の下に配置する説明文 */
.section-text {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 30px auto 0; /* 上の余白を調整 */
    text-align: center;
}

div.othertreatment{
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

div.subpage_kinkbtm{
    width: 32%;
    text-align: center;
}
div.subpage_kinkbtm a{
    text-decoration: none;
    color: #635239;
}
div.subpage_kinkbtm a p{
    margin: 0;
    padding: 10px 0;
    border: 1px solid #635239;
    margin-bottom: 20px;
}
div.subpage_kinkbtm a:hover{
    color: #fff;
}
div.subpage_kinkbtm a p:hover{
    background-color: #635239;
}

div.clenchflowinfo{
    display: flex;
    gap: 2%;
}
div.clenchflowinfo img{
    width: 40%;
}
div.clenchflowinfo p{
    width: 60%;
}

.flex-right{
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}
.flex-right img{
    width: 35%;
    height: auto;
}
.flex-left{
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}
.flex-left img{
    width: 35%;
    height: auto;
}

.clenchcontb .table-wrap {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.clenchcontb table {
    width: 100%;
    border-collapse: collapse;
}
.clenchcontb table td {
    width: 50%;
    border: 1px solid gray;
    text-align: center;
    padding: 10px;
}

div.submainttl h1.clench_ttl{
        background-image: url(http://hsasaki.xsrv.jp/kirakira/img/pagettl_clench.jpg) !important;
}
/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .custom-section {
        clip-path: none;
        padding: 40px 0;
    }

    .container {
        flex-direction: column;
        text-align: center;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        margin-left: 0;
        margin-top: 20px;
        font-size: 24px;
    }

    .section-text {
        max-width: 100%;
        text-align: center;
    }

    .section-img {
        width: 80%;
    }
}

@media screen and (max-width: 768px) {
    div.clenchflowinfo {
        display: block;
    }
    div.clenchflowinfo img {
        width: 100%;
    }
    div.clenchflowinfo p {
        width: 100%;
    }
    div.clenchkblock img {
        width: 100%;
    }
    div.clenchkblock p{
        position: revert;
        width: 96%;
        transform: none;
        padding: 2%;
    }
  /* ここにスマートフォン向けのCSSを記述 */
  .table-container {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch; /* スクロールをスムーズにする */
    }
    .table-container p{
        color: #ff0000;
    }

    table {
      width: 100%;
      table-layout: fixed; /* テーブルの列幅を固定 */
    }

    div.clenchconte table tr th, div.clenchconte table tr td {
        display: block;
        word-break: break-word; /* 単語の途中で改行 */
        white-space: nowrap; /* 文字が折り返さないようにする */
        padding: 8px;
        width: auto;
    }
    div.clenchconte table tr th{
        background-color: #898072;
        color: #fff;
    }
    div.noritakeimg{
        display: block;
    }
    div.noritakeimg img{
        width: 100%;
    }
    div.subpwrap::after {
        top: -40px;
        height: calc(100% + 32px);
    }

    .vertical-title {
        font-size: 20px;
    }

    .section-text {
        font-size: 16px;
    }

    .section-img {
        width: 90%;
    }
    .flex-right img {
        width: 40%;
    }

.flex-left{
    display: block;
    gap: 0px;
}
.flex-left img{
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.flex-right{
    flex-direction: column-reverse;
    gap:0;
}
.flex-right img{
    width: 100%;
}
}