@charset "shift_jis";




/*---------- ページ全体の指定 ----------*/

body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "MS P ゴシック", "MS P Gothic", sans-Serif;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #333333;
  background-image: url(img/back.gif);
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* IE7 用 */

*:first-child+html * {
  font-family: "メイリオ", Meiryo, "MS P ゴシック", "MS P Gothic", sans-Serif;
}


/* IE6 用 */
* html * {
  font-family: "メイリオ", Meiryo, "MS P ゴシック", "MS P Gothic", sans-Serif;
}


a:link {
  color: #69821b;
  font-size: 16px;
}

a:hover {
  color: #99ab4e;
  font-size: 16px;
}

a:visited {
  color: #69821b;
  font-size: 16px;
}

p {
  margin: 18px 0 18px 0;
  line-height: 180%;
  letter-spacing: 1px;
}

/*---------- メイン ----------*/

#main {
  width: 100%;
  margin: auto;
  padding: 0;
  text-align: center;
  border-bottom: solid 1px #9f9f9f;
  background: url(img/main_back.gif);
}



/*---------- ヘッダー ----------*/

#header {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  background-color: #ffffff;
}

#header h1 {
  margin: 0;
  padding: 20px 10px 0 20px;
  width: 400px;
  text-align: left;
  font-size: 40px;
  color: #666666;
  letter-spacing: 1px;
}

#header p {
  margin: 0;
  padding:  4px 0 0 20px;
  text-align: left;
  font-size: 14px;
  color: #666666;
  letter-spacing: 1px;
}

#table-left{
  text-align: left;
  font-size: 20px;
  font-weight:bold;
  color: #666666;
  line-height: 200%;
  text-decoration: none;
}

#table-left a{
  font-size: 16px;
  color: #666666;
  font-weight:bold;
  text-decoration: none;
}

#table-left a:hover{
  font-size: 20px;
  color: #999999;
  text-decoration: none;
}


#table-right{
  text-align: right;
  margin: 0;
  padding: 20px 20px 2px 0;
  font-size: 20px;
  font-weight:bolder;
  color: #c9171e;
  line-height: 150%;
  text-decoration: none;
}

#table-right a{
  font-size: 12px;
  color: #333333;
  text-decoration: none;
}

#table-right a:hover{
  font-size: 12px;
  color: #666666;
  text-decoration: none;
}
#no_border {
    border-style:none;
}

/*---------- コンテンツ ----------*/

#container {
  width: 100%;
  max-width: 888px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 6px 6px 6px;
  background: #ffffff url(img/side_yback.jpg) repeat-y;
}


/*---------- メインコンテンツ ----------*/

#contents {
  float: right;
  margin: 0;
  padding: 0 10px 5px 0;
  font-size: 15px;
  line-height: 180%;
  width: 640px;
  letter-spacing: 1px;
  text-align: left;
}

#contents #pannavi {
  margin: 0;
  padding: 3px 0 5px 0;
  font-size: 12px;
}

#contents h2 {
  height: 28px;
  margin: 0 0 7px 0;
  padding: 7px 0 0 20px;
  font-size: 14px;
  color: #69821b;
  background-image: url(img/titlebar.gif);
  background-repeat: no-repeat;
  clear:both;
}

#contents p {
  margin: 18px 0 18px 0;
  padding: 0 5px 0 5px;
  line-height: 180%;
  font-size: 14px;
}

#contents img.head_photo {
  margin: 0 0 8px 0;
}

#contents img.photo {
  float: left;
  margin: 10px 20px 0 0;
}

#contents img.picture {
  margin: 0 10px 10px 0;
  float: left;
}

#contents p.photo {
  margin: 0 0 20px 0;
  padding: 0;
}
/*---------- 追加0612 ----------*/

#contents h3 {
  padding:10px 0 0 0;
}

#contents h4 {
  padding:0 0 0 10px;
}

#contents p.report {
  padding:0 0 0 10px;
}

#report_phot{
  margin:30px 0 0 125px;
}

#report_phot p{
  margin:0 0 30px 10px;
}

#about_ac p.motto{
  margin:40px 0 0 0;
}

#about_ac p.phot1{
  margin:0 0 10px 0;
  float:right;
}

#about_ac p.phot2{
  margin:20px 0 20px 0;
  float:left;
}

#about_ac p.phot3{
  margin:20px 0 20px 0;
  float:right;
}

#info dd {
  padding:20px 20px 20px 30px;
  margin:0 0 0 70px;
}

#r_contents{
  margin:0px 10px 0px 10px;
  }
/*---------- 追加0612 ----------*/

/*---------- 追加0531 ----------*/
#contents ul.ours {
    font-size: 14px;
    padding-left:20px;
    margin-left:0px;
}

#contents ul.ours li{
    line-height:25px;
    margin:20px 0 10px 0;
}  

#contents p.red strong,.red {
  color:#ff0000;
}

#contents p.oneonezero {
  margin:0 0 -15px 0;
}

#contents p.past {
  margin:0 0 -15px 0;
  font-weight:bold;
}

#contents p.tell {
  margin:-15px 0 0 0;
  }
/*---------- 追加0531 ----------*/

table#t01 {
  border: solid 1px #999999;
  border-collapse: collapse;
}


td#t01 {
  border: solid 1px #999999;
  border-collapse:collapse;
}


td#head {
  padding: 6px;
  border: solid 1px #999999;
  border-collapse: collapse;
}


table.table_line {
  border-collapse: collapse;
  border: solid 1px #999999;
}


td.table_line {
  border-collapse:collapse;
  border: solid 1px #999999;
  padding : 8px 14px 8px 14px;
}


/*---------- メニュー ----------*/

#menu {
  float: left;
  margin: 2px 0 15px 0;
  padding: 0;
  width: 220px;
  text-align: left;
  letter-spacing:1px;
}

.menulist {
  margin: 0 0 15px 0;
  padding: 5px 2px 0px 5px;
  width: 210px;
  font-size:20px;
  font-family:sans-serif; 
  text-align:left;
}

.menulist h2 {
  height: 20px;
  margin: 0;
  padding: 4px 0 2px 12px;
  font-size: 15px;
  color:#fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
}

.menulist a{
  color: #69821b;
  display: block;
  border-right: solid 1px #dddddd;
  border-bottom: solid 2px #cccccc;
  border-left: solid 1px #dddddd;
  width:174px;
  padding: 9px 4px 6px 30px;
  font-size: 16px;
  line-height: 160%;
  background-image: url(img/side_menu_bg.gif);
  background-repeat: no-repeat;
 }

.menulist a:hover{
  color:#99ab4e;
  background-image: url(img/side_menu_bg_hover.gif);
  background-repeat: no-repeat;
}

.menu_free {
  margin: 0 0 14px 5px;
  padding: 0;
  width: 210px;
  text-align: left;
  background-image: url(img/menu_back.gif);
}

.menu_free h2 {
  height:19px;
  margin: 0;
  padding: 4px 0 2px 12px;
  font-size: 13px;
  color:#fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
}

.menu_free a{
  color:#69821b;
  width: 198px;
  padding: 6px 0 5px 0;
  font-size: 13px;
  line-height: 180%;
 }

.menu_free a:hover{
  color:#99ab4e;
  line-height: 180%;
}

.menu_free p{
  margin: 0;
  padding: 8px 8px 14px 8px;
  font-size: 13px;
  background-color: #ffffff;
  background-image: url(img/menu_back.gif);
  line-height: 180%;
}

.banner{
  margin:40px 5px 0px 5px;
  text-align: center;
 }

.banner img{
  display:block;
  border: 0px!important;
  max-width: 80%;   /* 80% に縮小 */
  height: auto;
  margin: 0 auto;
}
/*---------- フッター ----------*/

#footer {
  clear: both;
  width:100%;
  height:auto;
  margin: 0;
  padding: 15px 0 15px 0;
  text-align: center;
  font-size: 13px;
  color: #333333;
  border-top: solid 3px;
  border-top-color: #cccccc;
  background-color: #ffffff;
}

#footer a {
  color:#333333;
  font-size: 13px;
 }

#footer a:hover {
  color:#333333;
}

#footer ul{
  list-style: none;
  padding: 0px;
}





table.hyo{
  border-top: 3px solid #006400;
  border-left: 3px solid #006400;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #ffffff;
  empty-cells: show;
  margin-top: 30px;
  width: 100%;          /* 追加 */
  max-width: 100%;      /* 追加 */
}

.hyo th{
  border-right:3px solid #006400;
  border-bottom:3px solid #006400;
  color:#330000;
  background-color:#996633;
  background-position:left top;
  padding:0.3em 1em;
  text-align:center;
}
.hyo td{
  border-right:3px solid #006400;
  border-bottom:3px solid #006400;
  padding:0.3em 1em;
}


.flL{
  float: left;
  width: 450px;
}

.flR{
  float: right;
  width: 450px;
}

.clr{
  clear: both; 
}

#ftr_box{
  width: 900px;
  margin-right: auto;
  margin-left: auto;
}


.txalL{
  text-align: left;
}

.txalR{
  text-align: right;
}

.pdl20{ padding-left: 20px; }

clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.clearfix {
  display: inline-block;
}

.free_menu{
  margin-top:20px;
  margin-bottom:35px;
}


/*---------- アロマ ----------*/


#aroma h2{
  width:370px;
  height:70px;
  margin:40px auto;
  padding:0;
  background-image: none;
}

#aroma h3{
  width:140px;
  height:30px;
  margin:30px 0 20px 0;
  padding:0;
  text-align:left;
  background-image: none;
}

#aroma p{
  padding:10px;
}

#tantounetsu{
  text-align:right;
}

#tantounetsu ul{
  list-style-type: none;
  font-size:90%;
  float:right;
  line-height:150%;
}


#tantounetsu img{
  margin:10px 10px 30px 10px;
  float:right;
}

#aroma #aroatte h3{
  font-size:105%;
  color:#ff0000;
  font-weight:bold;
  text-align:center;
  text-decoration: underline;
  width: 640px;
  padding-top: 10px;
  margin-bottom:0px;
}

#aroma #aroatte p{
  padding-top: 0px;
}

#course{
  margin:0 auto;
}


.acourse{
  width:200px;
  list-style-type: none;
  font-size:90%;
  display:inline;
  float:left;
  padding:0 0 0 10px;
  line-height:150%;
}

.fx{
  clear:both;
  margin:0;
  padding:0;
}

#course p{
  margin:10px 0 30px 0;
  padding:0;
  color:red;
}

#oil {
  margin:10px 10px 40px 10px;
}

#oil img{
  margin:20px 0 0 0;
}

#oil p{
  margin:10px 0 20px 0;
  padding:0;
}

.fukidashi{
  width:600px;
  height:208px;
  margin:20px auto;
  background-image:url(img/fukidashi.png);
  background-repeat: no-repeat;
}

#qa p{
  margin:0;
  padding:25px 0 0 40px;
}

.fuki2{
  padding:40px 0 0 0;
}

.arcourse{
  list-style-type: none;
  font-size:90%;
}

.bldmb{
  font-weight:bold;
  margin-bottom:5px;
}

#ar{
  margin-bottom:30px;
}

#ar h4{
  color:#ff6b00;
  padding:0;
  margin:0 0 10px 0;
}

#sa h4{
  color:#2020ff;
  padding:0;
  margin:0 0 10px 0;
}


#sa ul{
  margin-top:20px;
  margin-bottom:25px;
}


#sa p{
  color:#333333;
  padding:0 10px;
  margin:0; 
}



/*---------- トレーナー ----------*/

.reportimg{
  margin: 0 10px 0 5px;
}

.lh{
  line-height:1.3em;
}

#aroatte{
  clear:both;
  padding:0 10px;
  -webkit-background-size: 15px 15px;
  -moz-background-size: 15px 15px;
  background-size: 15px 15px;
  background-color: #f6f7e9;
  background-image: -webkit-gradient(linear, 0 100%, 100% 0,
                        color-stop(.25, rgba(137, 204, 135, 0.1)), color-stop(.25, transparent),
                        color-stop(.5, transparent), color-stop(.5, rgba(137, 204, 135, 0.1)),
                        color-stop(.75, rgba(137, 204, 135, 0.1)), color-stop(.75, transparent),
                        to(transparent)),
                  -webkit-gradient(linear, 0 0, 100% 100%,
                        color-stop(.25, rgba(137, 204, 135, 0.1)), color-stop(.25, transparent),
                        color-stop(.5, transparent), color-stop(.5, rgba(137, 204, 135, 0.1)),
                        color-stop(.75, rgba(137, 204, 135, 0.1)), color-stop(.75, transparent),
                        to(transparent));
  background-image: -moz-linear-gradient(45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent),
                  -moz-linear-gradient(-45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent);
  background-image: -ms-linear-gradient(45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent),
                  -ms-linear-gradient(-45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent),
                  -o-linear-gradient(-45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent),
                  linear-gradient(-45deg, rgba(137, 204, 135, 0.1) 25%, transparent 25%,
                    transparent 50%, rgba(137, 204, 135, 0.1) 50%, rgba(137, 204, 135, 0.1) 75%,
                    transparent 75%, transparent);
  -moz-border-radius: 20px;    
  -webkit-border-radius: 20px; 
  border-radius: 20px;   
}
 
.staffintro{
  width:640px;
  height: 200px;
  margin:60px 0;
}
 
.staffintro2{
  width:640px;
  height: 200px;
  margin:60px 0 100px 0;
}

#contents p.introleft1{
  float:left;
  width:410px;
  margin:0;
}
 
#contents p.introleft2{
  float:left;
  width:410px;
  text-align: right;
  margin:5px 0 0 0;
}
 
.staffintro img,
.staffintro2 img{
  margin-left:20px;
}
 
#contents p.introright1{
  float:right;
  width:410px;
  margin:0;
}
 
#contents p.introright2{
  float:right;
  width:410px;
  text-align: right;
  margin:5px 0 0 0;
}
 
.staffintro img.shio,
.staffintro2 img.shio{
  float:left;
  margin:0 10px 0 0;
}
 
.mrb160{
  margin-bottom:160px;
}
 
.mrb80{
  margin-bottom:160px;
}
 
#contents p.repotop{
  margin-top:40px;
}
 
.shiseipic{
  margin-right:15px;
}
 
.supa{
  float:left;
}

#contents .supa p.imag{
  margin: 18px 0 10px 0;
}

#contents .supa p.cap{
  text-align:center;
  margin: 0;
}

#contents .supa p.marg20{
  margin-bottom:20px;	
}

/*---------- アコーディオン ----------*/
#contents #kansen{
  display:block;
  text-align: center;
  color:#ff0000;
  border: 1px solid #ff0000;
  padding:10px 0;
  cursor:pointer;  
}
  
#kansen-contents{
  display:none;
}
    
/*---------- 追加210609 ----------*/

#contents .free_menu h3{
  font-size: 16px;
  padding: 6px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 1px solid #a1cb59;
  line-height: 1.5em;
}

/* ---------------------------
   基本：ハンバーガーボタン
   --------------------------- */
.sp-menu-btn {
  display: none;           /* PCでは非表示、SPで表示（下の @media で上書き） */
  background: #a8905e;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  align-items: center;
  gap: 6px;
}

/* 三本線 */
.sp-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  margin: 3px 0;
}

/* MENU の文字 */
.sp-menu-label {
  margin-left: 4px;
}

/* ---------------------------
   共通：画像・テーブル・iframe をはみ出させない
   --------------------------- */
img {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}

iframe {
  max-width: 100%;
}

/* ---------------------------
   スマホ用レイアウト
   --------------------------- */
@media screen and (max-width: 768px) {

  body {
    font-size: 14px;
  }

  #header {
    width: 100%;
    height: auto;
  }

  #header table {
    width: 100%;
  }

  #header table td {
    display: block;
    width: 100%;
  }

  /* メインコンテナを画面幅いっぱいに */
  #container {
    width: 100%;
    padding: 0 10px 10px;
    box-sizing: border-box;
    background: #ffffff;
  }

  /* メインとメニューを縦並びに */
  #contents,
  #menu {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* ハンバーガーボタンを表示 */
  .sp-menu-btn {
    display: inline-flex;
    margin: 10px 0;
  }

  /* メニュー本体を「全画面オーバーレイ」に */
  .menulist {
    display: none;              /* 初期状態は非表示 */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 70px 20px 20px;
    background: #a8905e;
    overflow-y: auto;
  }

  /* OPEN 時の状態（JS で .is-open を付ける） */
  .menulist.is-open {
    display: block;
  }

  /* オーバーレイ内のメニューの見た目を少しスマホ向けに */
  .menulist a {
    width: 100%;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 4px 10px 10px;
    background-image: none;
    color: #ffffff;
  }

  .menulist h2 {
    margin-top: 20px;
    padding-left: 10px;
    background: none;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* 背景のスクロールを止める */
  body.nav-open {
    overflow: hidden;
  }

  /* バナーの横幅を画面にフィットさせる */
  .banner {
    width: 100%;
    margin: 20px 0 0;
  }

  .banner img {
    width: 100%;
    height: auto;
  }
}

/* =============================
   ハンバーガーメニュー（全画面スライド）
============================= */

/* メインカラー（既存の緑系カラーに変更） */
:root {
  --main-green: #69821b; /* ←サイトで使っている色 */
}

/* ボタン */
.hamburger-btn {
  width: 32px;
  height: 24px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--main-green);
  border-radius: 2px;
}

/* 右からスライドするメニュー */
#drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--main-green);
  color: #fff;
  transition: right 0.3s ease;
  z-index: 9998;
  padding-top: 20px;
}

#drawer-menu.open {
  right: 0;
}

/* 閉じるボタン（×） */
.drawer-header {
  text-align: right;
  padding: 10px 20px;
}

.close-btn {
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* リスト */
.drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.drawer-nav li a {
  display: block;
  padding: 16px 20px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

.drawer-nav li a:hover {
  background: rgba(0,0,0,0.1);
}

/* スマホのみ表示 */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
}

/* =========================================
   スマホ時にバナーを表示させる調整
   ========================================= */
@media (max-width: 768px) {

  /* メニュー全体は残して、ナビ（.menulist）だけハンバーガーで制御する前提 */
  #menu {
    float: none;
    width: 100%;
    margin: 20px auto 0;
  }

  /* ハンバーガーメニューで開閉するナビ本体 */
  .menulist {
    /* ここはハンバーガーメニュー用JSで show/hide するので、
       初期状態で非表示にしたい場合だけ display:none を入れてください */
    /* display: none; */
  }

  /* バナーは常に表示 */
  .banner {
    display: block;
    width: 100%;
    max-width: 320px;      /* 必要に応じて調整 */
    margin: 20px auto 0;
    text-align: center;
  }

  .banner img {
    width: 100%;
    height: auto;
  }
}

/* PC では非表示 */
.hamburger-btn {
  display: none;
}

/* スマホで表示 */
@media screen and (max-width: 768px) {

  #contents,
  #menu {
    float: none;
    width: 100%;
  }

  .menulist {
    display: none;  /* スマホでは左カラムメニューは非表示 */
  }

  .hamburger-btn {
    display: flex;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background-color: #69821b; /* サイトで使っているグリーン */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block;
    width: 60%;
    height: 3px;
    background-color: #ffffff;  /* 白い 3 本線 */
  }

}

/* ドロワーメニュー本体 */
#drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100%;
  background-color: #69821b;   /* グリーン */
  color: #ffffff;
  z-index: 999;
  transition: right 0.3s ease;
}

#drawer-menu.open {
  right: 0;
}

.drawer-header {
  position: relative;
  padding: 10px;
  text-align: right;
}

.close-btn {
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav li a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.drawer-nav li a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ナビ開いた時はハンバーガーボタンを非表示 */
.nav-open #hamburger {
  display: none !important;
}

@media screen and (max-width: 768px) {
  /* お問い合わせ側もセンター揃え */
  #table-right {
    text-align: center;
    width: 100%;
    padding: 10px 0;
  }
}

/* ===== スマホ時ヘッダーの中央寄せ調整 ===== */
@media screen and (max-width: 768px) {
  #table-left,
  #table-right {
    text-align: center;
    width: 100%;
  }

  #table-left h1 {
    width: 100%;
    text-align: center;
    padding: 10px 0 0 0;
    margin: 0 auto;
  }

  #table-left p {
    display: block;
    margin: 10px auto 0;
    padding: 0 10px;
    max-width: 90%;
    text-align: center;
    word-break: break-word; /* 長い文章の折り返し */
  }

  #table-left img {
    max-width: 100% !important;
    height: auto;
  }

  #table-right {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .hyo td:first-child,
  .hyo th:first-child {
    width: auto;
    white-space: nowrap;
    text-align: center;
  }

  .hyo td,
  .hyo th {
    padding: 6px 4px;
    font-size: 13px;
  }
}

/* スマホ用フッター調整 */
@media screen and (max-width: 768px) {

  /* フッターボックスを画面幅にフィットさせる */
  #ftr_box {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }

  /* 左カラム（医院情報）は横並び＆固定幅をやめて全幅＋折り返し */
  .flL.txalL {
    float: none;
    width: 100%;
    text-align: left;
  }

  .flL.txalL ul {
    padding-left: 0;
    margin: 0;
  }

  .flL.txalL li {
    word-break: break-all;
  }

  /* 右側のリンクリストはスマホでは非表示 */
  .flR.txalR {
    display: none;
  }

  /* コピーライトは中央揃え＆折り返し */
  #footer .clr {
    text-align: center;
    padding: 10px 0 0;
    word-break: break-all;
  }
}

/* =============================
   スタッフ紹介：スマホ用レイアウト調整
   画像 → 名前 → 紹介文 の順番に並べる
============================ */
@media screen and (max-width: 768px) {

  .staffintro,
  .staffintro2 {
    width: 100%;
    height: auto;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 画像は一番上・中央寄せ */
  .staffintro img,
  .staffintro2 img {
    order: 1;
    float: none;
    display: block;
    margin: 0 auto 10px;   /* 画像の下に少し余白 */
  }

  /* ★ 塩川さんの画像クラス .shio も同じ margin に揃える（PC用指定を上書き） */
  .staffintro img.shio,
  .staffintro2 img.shio {
    margin: 0 auto 10px;
  }

  /* 各テキストの float / 幅を解除して全幅に */
  #contents p.introleft1,
  #contents p.introleft2,
  #contents p.introright1,
  #contents p.introright2 {
    float: none;
    width: 100%;
  }

  /* 名前（代表：〜／院長：〜／スタッフ：〜）を2番目に
     → 画像との間に十分な余白を入れて、全員同じ間隔に */
  #contents p.introleft2,
  #contents p.introright2 {
    order: 2;
    margin: 0 0 10px 0;
    text-align: center;
  }

  /* 紹介文を3番目に */
  #contents p.introleft1,
  #contents p.introright1 {
    order: 3;
    margin: 0;
  }
}

/* =============================
   自由診療：スマホ用レイアウト調整
   画像中央寄せ
============================ */
@media screen and (max-width: 768px) {
  .servicefree img {
    display: block;
    margin: 0 auto;
    float: none !important;
  }
}

/* ----------------------------------------------------
   contact.html の「住所＋玄関画像テーブル」だけ
   スマホで縦並びにする
---------------------------------------------------- */
@media screen and (max-width: 768px) {

  table[width="650"] {
    display: block !important;
    width: 100% !important;
  }

  table[width="650"] tr {
    display: block !important;
    width: 100% !important;
  }

  table[width="650"] td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 18px; /* 適度な余白 */
    text-align: center;  /* 画像とテキストを中央寄せ */
  }

  /* 住所部分だけは左寄せに戻す */
  table[width="650"] td[align="left"] {
    text-align: left !important;
    padding-left: 10px;
  }

  /* 画像が画面幅に合うように */
  table[width="650"] img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }
}

/* ====== contact.html : clinic-info 新レイアウト ====== */
.clinic-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 650px;
    margin: 0 auto 30px;
}

.clinic-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

.clinic-image img {
    max-width: 250px;
    height: auto;
    display: block;
    border: none;
}

/* ------ スマホで縦並び ------ */
@media screen and (max-width: 768px) {
    .clinic-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .clinic-text {
        text-align: left; /* 左寄せが良ければこのまま */
        width: 100%;
    }

    .clinic-image img {
        max-width: 100%;
    }
}

/* PC版（769px以上）だけ margin を付ける */
@media screen and (min-width: 769px) {
    .clinic-info {
        margin-top: 20px !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

