@charset "UTF-8";
/* =========================================================
   legacy-parts.css — 旧サイトのテーマ側カスタムCSSから引き継いだ本文部品
     本番は Cure テーマの「カスタムCSS」に全ページ共通で入っていたもの。
     埋め込みHTML（診療時間表 .biz-hour1 / 症例カード .case-item / 年表 .timeline /
     料金表 .tab1 / 縦書き .tate4 / お問い合わせフォーム .mousikomi など）が依存している。
     追従バナー・チャットボット・ページトップ・休診カレンダーはテーマ側で作り直したため除外。
   ========================================================= */

.wpcf7-form .mousikomi select {
            display: inline;
            width: 60px;
            height: 30px;
            margin: 0px 5px 15px 8px;
            padding: 4px;
}

.wpcf7-form  .mousikomi select[name="menu-time"], .wpcf7-form  .mousikomi select[name="menu-time2"], .wpcf7-form  .mousikomi select[name="menu-time3"] {
            width: 88px;
 }

.wpcf7-list-item-label {
            margin-left:5px;
}

.wpcf7-radio span.wpcf7-list-item {
            display: block;
}

#mail_submit2 {
            background: #FEB7B1;
            color: #666666;
            font-size: 16px;
            font-weight: normal;
            margin: 20px 0 25px;
            padding: 9px 18px;
            text-decoration: none;
}

.sankou {
        	font-size:70%;
        	background-color:#E59057;
        	color:#fff;
        	padding:3px 4px;
        	margin:0 5px;
        	white-space: nowrap;
}

.sankou.blue { background-color:#8489CE; }

.mousikomi { margin-top:20px; }

.yoyaku {
            background:#FEB7B1;
            color: #fff;
            font-size: 15px;
            width: 30%;
            vertical-align: middle;
}

.mousikomi td {
            padding-left: 10px;
            vertical-align: middle;
}

table .mousikomi { width: 100%;}

@media only screen and (max-width:420px) {
.mousikomi tbody tr{
                display: block;
                border: none;
                margin-bottom: 0.8em;
            }
            .mousikomi tbody td{
                display: block;
                border: none;
                padding: 10px;
            }
            .wpcf7-textarea {width: 100%; }
            .mousikomi table tr td,
            .mousikomi {border: none; }
            .mousikomi td { width: auto;}
}

.wpcf7 .wpcf7-submit {
	background:#FEB7B1;
}

.biz-hour1 {
  display: white;
  border-collapse: collapse;
  /* overflow-x: scroll;で、
  スマホ画面幅に表が入りきらない場合は
  横スクロールしてくれます */
  overflow-x: scroll;
	margin:auto;
}

.biz-hour1 th, .biz-hour1 td {
  padding: 10px;
  text-align: center;
  /* 枠線。色を変えたい時は#ff6680というところをお好みで */
  border: 1px solid #666666;
}

.biz-hour1 th, .biz-hour1 td {
    border-right: none !important;
    border-left: none !important;
}

.biz-hour1 th {
  background-color: #FF7D81;
  font-weight: normal;
}

/* 旧テーマの `th { color: white }`（背景が濃い料金表・診療時間表のための指定） */
.fs-body th {
  color: white;
}
/* 表ではなかった2列組みは本文と同じ文字色に戻す */
.fs-body .fs-table--kv th { color: inherit; }

.biz-hour1 {
/* font-family: serif; */
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
/* 	font-family:serif; */
}

.breadcrumb li:not(:last-of-type)::after {
  content: "›";
  margin: 0 .6em; /* 記号の左右の余白 */
  color: #FFB0AA; /* 記号の色 */
}

.timeline-list-item .content2 {
  position: relative;
  width: 80%;
  padding: 20px 0px 20px 30px;
  border-left: 1px solid #aaaaaa;
}

.timeline-list-item .date2 {
  width: 15%;
  padding: 100px 20px 100px 20px;
  color: #888888;
  font-weight: bold;
}

.timeline {
  width: 96%;
  max-width: 940px;
  margin: 28px auto;
  border: 1px solid #eeeeee;
  background-color: #fff2e6;
}

.timeline-list {
  padding: 4px 0;
}

.timeline-list-item {
  display: flex;
  line-height: 1.5;
  font-size: 16px;
}

.timeline-list-item .date {
  width: 15%;
  padding: 0;
  color: #888888;
  font-weight: bold;
}

.timeline-list-item .content {
  position: relative;
  width: 80%;
  padding: 0px 0px 40px 30px;
  border-left: 1px solid #aaaaaa;
}

.timeline-list-item .content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 10px;
  height: 10px;
  background-color: #FFB0AA;
  border-radius: 10px;
}

/* table {
  width: 100%;
  border-collapse: collapse;
}

.fs-body table th {
width: 100px;
height: 45px;
border: 2px #e7e7e7 solid;
}

.fs-body table td {
width: 500px;
height: 45px;
border: 2px #e7e7e7 solid;
}

table tr *:nth-child(1) {
  background: #FFB0AA;
}

table tr *:nth-child(2) {
  background: #e7e7e7;
}

.fs-body table th, .fs-body table td {
  color:#000000;
  border:solid 1px white;
  text-align: center;
  padding: 10px 0;
}

*/
table th {
	color:#fff;
}

.tab1 {
  width: 100%;
  border-collapse: collapse;
}

.tr1 *:nth-child(1) {
width: 200px;
height: 45px;
border: 2px #e7e7e7 solid;
	    color: #666;
}

.tr1 *:nth-child(1) {
  background: #FFB0AA;
}

.tr1 *:nth-child(2) {
  background: #f9f9f9;
}

.th1, .td1 {
  color:#000000;
  border:solid 1px white;
  text-align: center;
  padding: 10px 0;
}

.th1 {
  font-weight: 400;
}

.top-case-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 症例間の隙間を設定 */
  justify-content: space-between; /* 症例を均等に配置 */
}

.case-item {
  flex: 1 1 calc(50% - 10px); /* デスクトップ時に2列表示 */
  box-sizing: border-box;
  margin-bottom: 20px; /* アイテムの間に余白を追加 */
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.bg1 {
  position: relative;
    background-size: 16px 16px;
    border-radius: 30px 0;
}

@media (max-width: 768px) {
.top-case-wrapper {
      flex-direction: column; /* 症例を縦に並べる */
      gap: 10px; /* モバイル用の隙間を設定 */
  }

  .case-item {
      flex: 1 1 100%; /* 症例を1列に表示 */
  }
}

.case-images {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.top-page-case {
  width: 45%; /* 画像の幅を指定 */
  position: relative;
}

.top-page-case img {
  width: 100% !important;
  height: 165px !important; /* TOPページ用の高さ */
  object-fit: cover !important;
  border-radius: 4px !important;
}

/* .top-page-case .label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #7C5732;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
}

*/
.top-page-case .label {
  position: absolute;
    top: -20px;
    left: -10px;
    width: 80px;
    height: 80px;
    background-color: #866849;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

span.label2 {
  position: absolute;
  top: 30px;
  color: #fff;
  left: 6px;
}

span.label3 {
  position: absolute;
  top: 30px;
  color: #fff;
  left: 11px;
}

/* .case-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-details ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

*/



.case-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%; /* 親要素の幅に合わせる */
  max-width: 100%; /* 最大幅を親要素に制限 */
  box-sizing: border-box;
}

.custom-list-container {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
  width: 100%; /* 親要素の幅に合わせる */
  max-width: 100%; /* リスト全体の最大幅を親要素に制限 */
}

.custom-list-container li {
  box-sizing: border-box;
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  display: inline-block;
  width: auto; /* 初期状態では幅を自動に */
  white-space: nowrap; /* テキストが折り返されないようにする */
}

.custom-list-container li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #612E04;
  font-size: 16px;
  line-height: 1;
}

@media (min-width: 600px) {
.custom-list-container {
      display: flex;
  }

  .custom-list-container li {
      flex: 1 1 50%; /* 50%の幅を持たせる */
      white-space: nowrap; /* テキストが折り返されないようにする */
  }

  .custom-list-container li.long-text {
      flex: 1 1 100%; /* 長いテキストの場合は100%の幅を占める */
      white-space: normal; /* テキストの折り返しを可能にする */
  }
}

.case-item {
  position: relative; /* ボタンの配置を相対的に設定 */
  width: 100%; /* アイテムの幅を設定 */
  padding-bottom: 50px; /* ボタンのスペースを確保 */
  margin-bottom: 20px; /* 各アイテムの間に余白を追加 */
  box-sizing: border-box; /* パディングを含む幅と高さを設定 */
}

.case-item-button {
  position: absolute; /* ボタンの位置を絶対的に設定 */
  bottom: 10px; /* 下からの距離を設定 */
  left: 50%; /* 左端からの距離を設定 */
  transform: translateX(-50%); /* 水平方向に中央揃え */
  text-align: center; /* ボタンを中央揃え */
}

.details-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #612E04; /* ボタンの背景色 */
  color: #fff; /* ボタンの文字色 */
  text-decoration: none; /* テキストの下線を削除 */
  border-radius: 5px; /* ボタンの角を丸める */
  font-size: 16px; /* 文字の大きさ */
  transition: background-color 0.3s ease; /* 背景色の変化をスムーズにする */
}

.details-button:hover {
  background-color: #8a3b0a; /* ホバー時の背景色 */
}

.tate4 {
  padding: 20px;
  writing-mode: vertical-rl;
  color: #666666;
  font-weight: 500;
   background-color: #fff;
   font-family: serif;
   font-size: 20px;
   letter-spacing: 0.2em;
   white-space: nowrap;
   writing-mode: vertical-rl;
	    margin-left: -13px;
}

@media only screen and (max-width:768px) {
.tate4 {
  padding: 0px;
  writing-mode: vertical-rl;
   font-size: 18px;
   font-family: serif;
	margin-top: -155px;
	}
}

/* 旧テーマの全セル枠。料金表・裏側矯正の表はこれで枠が出ているので必要。
   ※ 本番はページ側CSSより後に読まれる前提の指定で、こちらは先に読むため詳細度で合わせている。 */
.fs-body th, .fs-body td {
    border: solid 0.1px #FFB0AA;
}
/* 本番では「表」ではなく “用語 ＋ 説明” のテキスト2列組みだったものは枠を出さない。
   変換で <table> になっただけなので、枠を付けると署名などがピンクの箱で囲まれてしまう。 */
.fs-body .fs-table--kv th,
.fs-body .fs-table--kv td { border: 0; }
.fs-body .fs-table--kv td { border-left: 1px solid rgba(102, 102, 102, .75); }
.fs-body .fs-table--num td,
.fs-body .fs-table--sig td { border-left: 0; }
/* 診療時間表の枠は本番ではグレー */
.fs-body .biz-hour1 th,
.fs-body .biz-hour1 td { border: 1px solid #666; }

/* ---------- 年表（経歴）のスマホ表示 ----------
   「年 ｜ 内容」の2カラムは本番どおり残す。狭い画面だと年号の列が15%＝約52pxしかなく
   「1985 / 年」と2行に折れてしまうので、年号の列は文字幅ぶんだけ取り、残りを内容に回す。 */
@media screen and (max-width: 767px) {
  .timeline { width: 100%; margin: 20px auto; }
  .timeline-list { padding: 10px; }
  .timeline-list-item { font-size: 14px; line-height: 1.7; }
  /* 年号の列は幅を固定する。内容に合わせて伸縮させると縦ラインが行ごとにずれて
     ギザギザになるため（「2010年」と「2013年〜2017年」で幅が変わる）。
     いちばん長い「2013年〜2017年」が1行に収まる幅＋文字を少し小さく。 */
  .timeline-list-item .date {
    width: 88px; flex: none; white-space: nowrap;
    font-size: 11px; line-height: 1.8;
    text-align: right; padding: 0 10px 0 0;
  }
  .timeline-list-item .content {
    width: auto; flex: 1 1 auto; min-width: 0;
    padding: 0 10px 24px 16px;   /* 左16px＝縦ラインと文字を離す */
  }
}
