﻿@charset "UTF-8";


/*---------------------------- スマートフォン向けのスタイル ----------------------------*/
@media only screen and (max-width: 767px) {


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

body {
  width: 100%;
  font: 87.5% "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", Meiryo, sans-serif;
  color: #333333;
  letter-spacing: 0.05em;
  -webkit-text-size-adjust: 100%;
}


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

#main {
  background-color: #ffffff;
}


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

#header {
  width: 100%;
  height: auto;
  line-height: 1.6;
  background-color: #ffffff;
}

#header h1 {
  display: none;
}


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

#header #header_inner {
  margin: 0;
  padding: 4px;  /*-- 余白 --*/
  background-color: #ffffff;  /*-- 背景色 --*/
}


/*----- 左 logo -----*/

#h_logo {
  width: 100%;
  padding: 0;
  text-align: center;
  color: #666666;
}

#h_logo h2 {
  padding: 8px 0 4px 0;  /*-- logo 位置 --*/
  margin: 0;
}

#h_logo img {
  max-width: 100%;
  height: auto;
}

#h_logo a {
  color: #666666 !important;
  text-decoration: none;
  font-size: 1em;
}

#h_logo a:hover {
  color: #888888 !important;
  text-decoration: underline;
  font-size: 1em;
}


/*----- 右 info -----*/

#h_info {
  padding: 6px;
  text-align: center;
  background-color: #fbf0e1;
}

#h_info p {
  line-height: 1.0;
}

#h_info a {
  color: #c9171e !important;
  text-decoration: none;
}

#h_info .tel {
  font-size: 1.21em;
  color: #c9171e;
  line-height: 1.0;
  font-weight: bold;
}

#h_info .tel a {
  font-size: 1.21em;
  color: #c9171e;
  line-height: 1.0;
  font-weight: bold;
}


/*---------- ヘッダーメニュー ----------*/

#header-menu {
  margin: 2px 1px 8px 1px;
}

#header-menu ul {
  padding: 0;
}

#header-menu ul li {
  width: 50%;
  margin: 0;
  padding: 0;
  float: left;
  list-style: none;
  text-align: center;
}

#header-menu li a {
  width: 100%;
  font-size: 0.68em;
  padding: 13px 0 13px 0;
  display: block;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #fff6e7 !important;
  text-decoration: none;
  border-left: 1px solid #517e46;
  background: #77b258 url(../img/head_menu_back_abase.gif) repeat-x;
}

#header-menu li a:hover {
  color: #fff6e7 !important;
  display: block;
  text-decoration: none;
  background: #77b258 url(../img/head_menu_back_hover.gif) repeat-x;
}

#header-menu li.home a {
  border-left: none;
}

#header-menu span.sub {
  display: none;
}

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


/*---------- SPインフォメーション ----------*/

.information {
  margin: 0;
  padding: 0;
}

.phone {
  margin: 10px 0;
  padding: 0;
}


/*---------- メイン画像 ----------*/

#header-img {
  width: 100%;
  height: auto;
  margin: 0 0 20px 0;
}

.main_photo {
  display: block;
  margin: 0 auto 0 auto;
}


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

#container {
  padding: 0;
}


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

#contents {
  padding: 8px 6px 10px 6px;
  font-size: 1.28em;
}

.article {
  margin: 0;
  padding: 0;
}

.section {
  margin: 0 0 20px 0;
  padding: 0 0 5px 0;
}

#contents #pannavi {
  margin: 0 0 5px 0;
  padding: 0 0 8px 0;
  font-size: 0.92em;
}

#contents h2 {
  margin: 0 0 7px 0;
  padding: 9px 8px 5px 12px;
  font-size: 1.28em;
  color: #fffffc;
  line-height: 1.7;
  background: url(../img/h_bg.gif) center repeat-x;
}

#contents h2.txt {
  margin: 0 0 7px 0;
  padding: 0;
  border: none;
  font-size: 1.28em;
  color: #54351f;
  background: none;
}

#contents h2.txt2 {
  margin: 0 0 7px 0;
  padding: 0;
  border: none;
  font-size: 1.28em;
  color: #54351f;
  background: none;
}

#contents h2.page_title {
  margin: 0 0 10px 0;
  padding: 12px 0 8px 12px;
  font-size: 1.28em;
  color: #882200;
  line-height: 1.6;
  border-top: solid 2px #cccccc;
  border-right: solid 2px #cccccc;
  border-bottom: solid 3px #882200;
  border-left: solid 4px #882200;
  background-color: #fff8e3;
  background-image: none;
}

#contents h3 {
  margin: 12px 3px 10px 3px;
  padding: 12px 10px 6px 12px;
  line-height: 1.6;
  font-size: 1.28em;
  color: #54351f;
  border-top: solid 1px #dddddd;
  border-right: solid 1px #dddddd;
  border-bottom: solid 1px #966934;
  border-left: solid 5px #966934;
  background: url(../img/h3_bg.gif) center repeat-x;
}

#contents h3.beta {
  margin: 12px 3px 10px 3px;
  padding: 10px 10px 8px 13px;
  line-height: 1.6;
  font-size: 1.28em;
  color: #fffffc;
  border-top: solid 1px #c85d15;
  border-right: solid 1px #c85d15;
  border-bottom: solid 1px #c85d15;
  border-left: solid 5px #c85d15;
  background: url(../img/h3_beta.gif) repeat-x;
}

#contents h3.point {
  margin: 10px 0 10px 0;
  padding: 8px 10px 6px 10px;
  line-height: 1.4;
  font-size: 1.28em;
  color: #e85922;
  border-top: solid 1px #888888;
  border-right: none;
  border-bottom: solid 4px #663300;
  border-left: none;
  background-image: url(../img/h3_point.gif) ;
}

#contents p {
  padding-right: 2px;
  padding-left: 2px;
  line-height: 1.6;
}


/*---------- 画像の回り込み ----------*/

img.picture {
  display: block;
  clear: both;
  margin: 20px auto 20px auto;
}

img.picture_r {
  display: block;
  clear: both;
  margin: 20px auto 20px auto;
}


/*---------- 表（テーブル） ----------*/

table#t01 {
  border: solid 1px #bbbbbb;
  border-collapse: collapse;
  padding: 4px;
}

td#t01 {
  padding: 4px;
  border: solid 1px #bbbbbb;
  border-collapse: collapse;
}

td#head {
  padding: 9px 6px 6px 15px;
  border: solid 1px #cccccc;
  border-collapse: collapse;
  background-image: url(../img/main_block_bg.gif);
}

table.table_line {
  width: 100%;
  border-collapse: collapse;
  border: solid 1px #bbbbbb;
  padding : 8px 4px 8px 4px;
}

td.table_head {
  border-collapse: collapse;
  border: solid 1px #bbbbbb;
  padding : 12px 8px 12px 8px;
  background-color: #fff8e3;
  width: 80px;
}

td.table_line {
  width: auto;
  border-collapse: collapse;
  border: solid 1px #bbbbbb;
  padding: 12px 8px 12px 8px;
}

/*---------- ■スマホではテーブル100％表示■ ----------*/
table.table_line2 {
  width: 100%;
  margin: auto; /* 中央寄せ */
  border-collapse: collapse;
  border: solid 1px #bbbbbb;
  padding : 8px 4px 8px 4px;
}

/*---------- 動画 ----------*/

.movie {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}

.movie iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/*---------- Googleマップ ----------*/

.map {
  position: relative;
  padding-bottom: 75%; 
  height: 0;
  overflow: hidden;
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6%;
  width: 88% !important;
  height: 100% !important;
}


/*---------- サイドエリア ----------*/

#menu {
  margin : 0 0 20px 0;
}

.menulist {
  width: 100%;
  text-decoration: none;
  margin: 0 0 25px 0;
}

.menulist h2 {
  padding: 10px 0 6px 14px;
  font-size: 1.18em;
  color: #fffffc;
  border-bottom: solid 1px;
  border-bottom-color: #583822;
  background: url(../img/h_bg.gif) center repeat-x;
}

.menulist h3 {
  padding: 10px 0 6px 14px;
  font-size: 1.18em;
  color: #fffffc;
  border-bottom: solid 1px;
  border-bottom-color: #583822;
  background: url(../img/h_bg.gif) center repeat-x;
}

.menulist ul {
  width: 100%;
  border-top: solid 1px;
  border-top-color: #cccccc;
}

.menulist li {
  width: 100%;
  list-style: none;
  text-align: center;
}

.menulist li a {
  position: relative;
  padding: 13px 10px 8px 10px;
  display: block;
  color: #333333 !important;
  text-decoration: none;
  border-bottom: solid 1px;
  border-bottom-color: #cccccc;
  background: url(../img/nav_bg.gif) repeat-x;
}

.menulist li a:hover {
  color: #333333 !important;
  display: block;
  text-decoration: none;
  border-bottom: solid 1px;
  border-bottom-color: #cccccc;
  background: url(../img/nav_bg_hover.gif) repeat-x;
}

.menulist li a:after {
  content: url(../img/flow_icon.png);
  position: absolute;
  right: 10px;
}

.menu_free {
  margin: 0 0 20px 0;
  padding: 0 0 5px 0;
  font-size: 1em;
  color: #333333;
  background-color: #fffffc;
}

.menu_free h2 {
  margin: 0 0 6px 0;
  padding: 10px 0 6px 14px;
  font-size: 1.18em;
  color: #fffffc;
  border-bottom: solid 1px;
  border-bottom-color: #583822;
  background: url(../img/h_bg.gif) center repeat-x;
}

.menu_free h3 {
  margin: 0 0 6px 0;
  padding: 10px 0 6px 14px;
  font-size: 1.18em;
  color: #fffffc;
  border-bottom: solid 1px;
  border-bottom-color: #583822;
  background: url(../img/h_bg.gif) center repeat-x;
}

.menu_free p{
  padding: 0 5px 0 5px;
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
}

.menu_top {
  display: none;
}

.menu_btn_under {
  display: none;
}


/*---------- サイドエリア・トップに戻る ----------*/

.menu_back {
  display: inline;
}


/*---------- フッター ----------*/

#footer {
  width: auto;
  padding: 20px 10px 20px 10px;
  color: #333333;
  line-height: 1.7;
  text-align: center;
  background-color: #e8f3c9;
}

#footer p {
  padding: 10px;
  color: #555555;
}

#footer a {
  color: #555555 !important;
}

#footer a:hover {
  color: #777777 !important;
}

#footer a:visited {
  color: #555555;
}

#footer small {
  padding: 10px;
  font-size: 0.92em;
  color: #555555;
}

#footer small a {
  color: #555555 !important;
  text-decoration: none;
}

#footer small a:hover {
  color: #777777 !important;
  text-decoration: underline;
}

#footer small a:visited {
  color: #555555;
  text-decoration: none;
}

}

/*---------- 地図レスポンシブ対応 ----------*/
.iframe-css {
  position: relative;
  width: 100%;
  padding-top:75%;
  overflow: hidden;
}
 
.iframe-css iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*---------- グーグルカレンダーのレスポンシブ対応 ----------*/

.gc-wrap {
    max-width: 800px;
    margin: 3% auto;
}
 
.g-calendar {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 70%;
}
 
.g-calendar iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
 
@media screen and (max-width:767px) {
 
    .g-calendar {
        padding-bottom: 90%;
    }
}
 




/*---------- ■　箇条書き左揃えで中央配置　■----------*/
.centered-list {
  display: flex;
  justify-content: center;
}

.centered-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.centered-list li {
  display: flex;               /* ✔と文章を横並びに */
  align-items: flex-start;
  margin-bottom: 0.3em;
}

.checkmark {
  min-width: 1.5em;            /* ✔スペースを確保して折返し防止 */
  display: inline-block;
  color: #C21807 !important;
  font-family: "Arial", "sans-serif"; /* 必要に応じてフォント指定 */
}

.text {
  flex: 1;                     /* ✔以外の部分が折り返し可能 */
}


/*---------- ■　ＱＡの改行位置調整　■----------*/
.faq {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.5em;
}

.faq-item {
  display: flex;
  align-items: flex-start;
}

.faq-item .label {
  min-width: 2em;
  flex-shrink: 0;
}

.faq-item .text {
  flex: 1;
}



/*　■ オンライン診療のテーブルにのみ適用されるスタイル■ */
.online-clinic-table .category-label {
 /* width: 24px;  または 1.5rem */
  /* その他のスタイル */
}

/* 既存のtd.table_headはそのままにしておくか、必要に応じて調整 */
td.table_head {
  width: 80px; /* 他のテーブルでは80pxを維持 */
}

.alt-table .category-label {
    writing-mode: horizontal-tb !important; /* 最も重要: 強制的に横書きに設定 */
    text-orientation: mixed !important; /* 横書きの標準的なテキスト方向 */
    width: auto !important; /* 幅を自動調整にする */
    white-space: normal !important; /* テキストの折り返しを許可する */
}




  /* ■テーブルの枠線を修正するための追加スタイル■ */
  /* .online-clinic-table が該当のテーブルであれば、そのクラス名を指定してください */
  /* 現状のonline.htmlを見る限り、class="alt-table" のテーブルが対象です */
  .alt-table th,
  .alt-table td {
    border: 0.8px solid #d4d4d4 !important; /* 枠線を明示的に再定義 */
  }

  /* 必要に応じて、テーブル全体にborder-collapseを再度適用（念のため） */
  .alt-table {
    border-collapse: collapse !important;
  }


  /* ■左右の余白■ */
  #main {
    background-color: #ffffff;
    padding-left: 12px;  /* 左側の余白 */
    padding-right: 12px; /* 右側の余白 */
  }




    /*---------- ■　オンライン診療トップリンク　■----------*/
    .top-links {
        padding: 10px 10px; /* スマホでのセクション内余白 */
        gap: 8px; /* スマホでは間隔を少し狭める */
    }
    .top-link-button {
    **font-size: 3.2vw; /* ビューポート幅の3.2%をフォントサイズに設定 (要調整) */
    white-space: nowrap; /* テキストの折り返しを禁止 */
    overflow-x: auto; /* 横方向にはみ出た場合にスクロールバーを表示 */
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールをスムーズにする */

        padding: 8px 3px; /* スマホでは内側の余白を調整 */
        flex-basis: calc(50% - 5px); /* sp.cssのgapに合わせて調整 (10px / 2 = 5px) */
        max-width: calc(50% - 5px);
    }


/* ■online.htmlのtdタグに指定されているalign-leftクラスのテキストを左寄せにする■ */
.align-left {
    text-align: left !important; /* !important を追加して確実に左寄せにする */
}

/* ■テーブルの2列目3列目で行をそろえる■ */
.product-item {
    display: flex; /* フレックスコンテナにする */
    justify-content: space-between; /* 項目と価格を両端に配置 */
    align-items: flex-start; /* 項目を上揃えにする */
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* 区切り線 */
}
.product-name {
    flex: 1; /* 名前が占めるスペースを広げる */
    margin-right: 10px; /* 価格との間にスペース */
}
.product-price {
    white-space: nowrap; /* 価格は折り返さない */
}

/* ■ページトップに戻るボタン■ */
    .back-to-top {
        position: fixed; /* 固定表示 */
        bottom: 20px;    /* 画面下からの距離 */
        right: 20px;     /* 画面右からの距離 */
        z-index: 1000;   /* 他の要素より手前に表示 */
        cursor: pointer; /* マウスオーバー時にカーソルを変更（タップ操作にも影響） */
        opacity: 0;      /* 初期状態では透明 */
        visibility: hidden; /* 初期状態では非表示 */
        transition: opacity 0.3s ease, visibility 0.3s ease; /* 表示・非表示を滑らかに */
    }

    /* JavaScriptで追加されるクラス */
    .back-to-top.show {
        opacity: 1;      /* 表示状態では不透明 */
        visibility: visible; /* 表示状態では可視 */
    }

    .back-to-top-inner {
        width: 40px;      /* 円の直径 */
        height: 40px;     /* 円の直径 */
        border-radius: 50%; /* 円形にする */
        background-color: rgba(0, 0, 0, 0.3); /* 半透明の黒 */
        color: #fff;       /* 三角の色（白） */
        font-size: 1.5em;   /* 三角のサイズ */
        line-height: 40px;  /* 垂直方向中央揃え */
        text-align: center; /* 水平方向中央揃え */
    }

    .back-to-top:hover .back-to-top-inner {
        background-color: rgba(0, 0, 0, 0.5); /* ホバー時にもう少し濃く */
    }

    /* ページトップへのスムーズスクロール（JavaScript が不要な場合） */
    html {
        scroll-behavior: smooth;
    }
}

/* ■特定の文章の文字サイズを16pxに設定■ */
.text-large {
  font-size: 16px !important;
}

/*---------- ■黒色で丸ゴシックの書体■----------*/
.mincho-text4 {
    text-align: left !important; /* テキスト左寄せ */
    font-family: "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", Meiryo, sans-serif;
    color: black !important; /* 黒色 */
    font-size: 1.25em !important; /* 文字サイズを適宜設定 */
}

/*---------- ■黒色で明朝の書体■----------*/
.mincho-text5 {
    text-align: left !important; /* テキスト左寄せ */
    font-family: 'BIZ UDMincho', '游明朝', YuMincho, 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', 'HG明朝E', 'ＭＳ Ｐ明朝', 'MS PMincho', serif;
    color: black !important; /* 黒色 */
    font-size: 1.25em !important; /* 文字サイズを適宜設定 */
    display: block !important; 
}
/*---------- ■オレンジ色で丸ゴシックの書体ＱＡのＱの文字■----------*/
.mincho-text6 {
    text-align: left !important; /* テキスト左寄せ */
    font-family: "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", Meiryo, sans-serif;
    color: #ff4500 !important; /* 黒色 */
    font-size: 1.25em !important; /* 文字サイズを適宜設定 */
}

/* ■ハンバーガーメニューボタン■ */
.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(51, 51, 51, 0.5);
  z-index: 9999;
  cursor: pointer;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

/* 三本線のスタイル */
.menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  transition: all 0.3s;
}

.menu-btn span::before {
  top: -8px;
}

.menu-btn span::after {
  top: 8px;
}

/* チェックボックスは非表示 */
#menu-btn-check {
  display: none;
}

/* スクロール時に表示させるためのクラス */
.menu-btn.show {
  opacity: 1;
  visibility: visible;
}

/* ■ハンバーガーメニューのメニュー本体■ */
.menu-content {
  position: fixed;
  top: 0;
  right: 0; /* 右端に固定 */
  width: 70%; /* 画面幅の70%に設定 */
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: flex;
  flex-direction: column; /* 項目を縦に並べる */
  padding-top: 30px; /* 例：30pxのパディングを上部に追加 */
  transform: translateX(100%) !important;
  transition: all 0.5s;
}

.menu-content a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ■ハンバーガーメニューのメニュー表示・非表示の切り替え■ */
#menu-btn-check:checked ~ .menu-content {
  transform: translateX(0) !important;
}

/* チェックボックスがチェックされたらハンバーガーボタンを閉じるアイコンに */
#menu-btn-check:checked ~ .menu-btn span {
  background-color: rgba(255, 255, 255, 0); /* 線の透明化 */
}

#menu-btn-check:checked ~ .menu-btn span::before {
  top: 0;
  transform: rotate(45deg);
}

#menu-btn-check:checked ~ .menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
}

 
}

