@charset "utf-8";

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

div.invisalign_goconta{
    margin: 50px 0;
}

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

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

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

div.invisalign_gokinds{
    margin: 50px 0;
}
div.invisalign_gokblock{
    position: relative;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}
div.invisalign_gokblock img{
    width: 60%;
}
div.invisalign_gokblock p{
    background: linear-gradient(to bottom, rgba(239, 236, 233, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 32px;
    width: 40%;
}

div.noritakeimg{
    display: flex;
    gap: 4%;
    width: 100%;
}
div.noritakeimg img{
    width: 48%;
}
div.invisalign_gocontb ul{
    padding-left: 1em;
}
div.invisalign_gocontb 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; /* 上の余白を調整 */
}

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.invisalign_goflowinfo{
    display: flex;
    gap: 2%;
}
div.invisalign_goflowinfo img{
    width: 40%;
}
div.invisalign_goflowinfo p{
    width: 60%;
}
.flex-right {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}
.flex-right img {
    width: 35%;
    height: auto;
}
.total{
    color:red;
}
.invisalign_gocontb table tr {
    display: flex;
}
.invisalign_gocontb table th {
    display: block;
    background: #fdf9f4;
    border-radius: 3px;
    padding: 0px 10px;
    width: 8em;
    text-align: center;
    margin-bottom: 10px;
}
.invisalign_gocontb table td {
    width: calc(100% - 8em);
    padding-bottom: 10px;
    padding-left: 10px;
    padding-top: 0px;
}
.invisalign_gocontb .table-wrap {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-top: 20px;
}

h1.invisagohone{
    background-image: url(http://hsasaki.xsrv.jp/kirakira/menu/invisalign_go/img/invisahone.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: 90%;
    }

    .section-img {
        width: 80%;
    }
    div.invisalign_goconte table tr.breakdown th{
        text-align: center;
        border: none;
        background: #fff;
        color: #898072;
    }
    div.invisalign_goconte table tr.breakdown td {
        border: none;
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-width: 768px) {
    .flex-right img{
        width: 100%;
    }
    div.flex-right{
        display: block;
    }
    div.invisalign_goflowinfo {
        display: block;
    }
    div.invisalign_goflowinfo img {
        width: 100%;
    }
    div.invisalign_goflowinfo p {
        width: 100%;
    }
    div.invisalign_gokblock img {
        width: 100%;
    }
    div.invisalign_gokblock 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.invisalign_goconte table tr th, div.invisalign_goconte table tr td {
        display: block;
        word-break: break-word; /* 単語の途中で改行 */
        white-space: nowrap; /* 文字が折り返さないようにする */
        padding: 8px;
        width: auto;
    }
    div.invisalign_goconte table tr th{
        background-color: #898072;
        color: #fff;q
    }
    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%;
    }

}