@charset "utf-8";
/* スマートフォン・タブレット用（2026-11 追加）
   style.css は変更せず、このファイルで上書きする。
   画面幅 1049px 以下のときだけ効く。PC表示には影響しない。 */

/* PCでは今のまま（スマホ用の追加分を隠し、電話のリンクを無効にする） */
.kmo-sp-only { display: none; }
.kmo-menu-btn { display: none; }
br.kmo-sp-br { display: none; }
a.kmo-logo-link { pointer-events: none; cursor: default; }

@media screen and (max-width: 1049px) {

  html, body { min-width: 0; }
  body { -webkit-text-size-adjust: 100%; }
  img { max-width: 100%; height: auto; }

  .kmo-pc-only { display: none !important; }
  .kmo-sp-only { display: block; }
  br.kmo-sp-br { display: inline; }
  a.kmo-logo-link { pointer-events: auto; cursor: pointer; }

  /* ---------- ヘッダー ---------- */
  div#header { width: auto; height: auto; padding: 0 12px; position: relative; }
  div#header:after { content: ""; display: block; clear: both; }
  div#header_upper_bg { margin-bottom: 10px; }
  img#logo_img { width: 62%; max-width: 380px; }
  div#header_set_right { display: none; }
  div#header { padding-top: 4px; padding-bottom: 12px; min-height: 56px; }

  /* ---------- メイン画像 ---------- */
  #slide_image_outside, div#slide_image_outside_other { min-height: 0; height: auto; }
  div#slide_image { width: 100%; height: auto; position: relative; aspect-ratio: 1091 / 365; }
  ul#slide_image_list { width: 100%; margin: 0; }
  ul#slide_image_list li, li#slide_image_lists01, li#slide_image_lists02 { width: 100%; height: auto; }
  ul#slide_image_list li img { width: 100%; }
  img#top_sent_img { position: absolute; top: auto; bottom: 4%; left: auto; right: 2%; width: 48%; }
  /* 1枚目はPCと同じく左端の余白（49px）を外して表示する（右に白い帯が出ないように） */
  div#slide_image { aspect-ratio: 1050 / 365; overflow: hidden; }
  ul#slide_image_list li { top: 0; height: 100%; }
  ul#slide_image_list li img#top_main_img { width: 104.71%; max-width: none; margin-left: -4.71%; }
  ul#slide_image_list li img#top_main_img2, ul#slide_image_list li img#top_main_img3 { width: 103.91%; max-width: none; }
  ul#slide_image_list_other { width: 100%; margin-bottom: 0; }
  li#slide_image_lists01_other { width: 100%; height: auto; }

  /* ---------- メニュー（ハンバーガー） ---------- */
  .kmo-menu-btn { display: block; position: absolute; right: 10px; top: 2px; width: 52px; height: 48px; padding: 0;
    border: 1px solid #0a3b72; border-radius: 6px; background: #fff; color: #0a3b72; cursor: pointer; z-index: 10001; }
  .kmo-menu-icon, .kmo-menu-icon:before, .kmo-menu-icon:after { display: block; width: 24px; height: 2px; background: #0a3b72;
    position: absolute; left: 13px; transition: transform .2s, top .2s, background .2s; }
  .kmo-menu-icon { top: 14px; }
  .kmo-menu-icon:before, .kmo-menu-icon:after { content: ""; left: 0; }
  .kmo-menu-icon:before { top: -7px; }
  .kmo-menu-icon:after { top: 7px; }
  .kmo-menu-label { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 10px; line-height: 1; }
  .kmo-nav-open .kmo-menu-btn { position: fixed; top: 12px; }
  .kmo-nav-open .kmo-menu-icon { background: transparent; }
  .kmo-nav-open .kmo-menu-icon:before { top: 0; transform: rotate(45deg); }
  .kmo-nav-open .kmo-menu-icon:after { top: 0; transform: rotate(-45deg); }

  #navigation_outline.kmo-nav { display: none; }
  .kmo-nav-open #navigation_outline.kmo-nav { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10000; min-width: 0; background: #fff; overflow-y: auto; padding-top: 72px; }
  .kmo-nav-open body { overflow: hidden; }
  #navigation { width: auto; }
  #navigation_list { height: auto; padding: 0 16px; }
  #navigation_list li { float: none; display: block; margin: 0; padding: 0; font-size: 16px; text-align: left; border-bottom: 1px solid #ddd; }
  #navigation_list li a { display: block; padding: 16px 4px; }

  /* ---------- 本文の枠 ---------- */
  #main_contents { width: auto; padding: 0 12px; display: flex; flex-direction: column; }
  #main_contents > * { order: 5; }
  div#pankuzu { width: auto; height: auto; padding: 10px 0; overflow: hidden; order: 0; }
  div#main_right_contents_other { float: none; width: auto; padding-bottom: 20px; order: 1; }
  div#main_left_contents_other { float: none; width: auto; margin: 0; order: 2; text-align: center; }
  div#main_left_contents_other ul { display: inline-block; text-align: left; }

  /* 見出し画像：縮めずに表示し、右側の罫線を切る */
  #main_right_contents_other h2, #main_right_contents_other h3 { overflow: hidden; height: auto; }
  img#other_tit_img, img#sub_sub_tit_img { max-width: none; }
  /* 紺の見出し帯：画面幅で切れる右端も、左端と同じく角を丸める */
  img#other_tit_img { clip-path: inset(0 max(0px, calc(744px - 100vw + 24px)) 0 0 round 3px); }
  /* 顧問契約の見出し：他の見出しと同じく縮めずに表示 */
  img[src="img/sub_tit_komon.png"] { max-width: none; }
  #main_right_contents_other p:has(> img[src="img/sub_tit_komon.png"]) { overflow: hidden; }
  h3#sub_sub_tit { padding-top: 18px; }


  /* ---------- トップページ ---------- */
  div#main_left_contents, div#main_right_contents { float: none; width: auto; height: auto; margin-top: 15px; }
  div#what_syaroushi { width: auto; height: auto; padding-bottom: 12px; background-size: 100% 100%; }
  div#syaroushi_content_inside { width: auto; height: auto; overflow: visible; margin: 0 10px 0; }
  h2#content_tit { padding-left: 14px; text-align: left; }
  img#serch_icon_img { position: static; margin: 0 6px 0 0; vertical-align: middle; width: 40px; }
  div#topics_box { height: auto; padding-bottom: 12px; }
  div#topice_topics_list_box { width: auto; height: auto; max-height: none; overflow: visible; margin: 0 10px; }
  #top_copy { width: auto; padding: 0 12px; }
  #each_work_table { width: auto; padding: 0 12px; box-sizing: border-box; }
  #each_work_table .box { width: 100%; float: none; margin-right: 0; background-size: cover; box-sizing: border-box; height: auto; padding-bottom: 30px; }
  p#sub_about_work_sent, p#sub_about_work_sent01 { height: auto; }

  .kmo-sp-textbox { border: 2px solid #f0c060; border-radius: 6px; padding: 14px; font-size: 14px; line-height: 1.8; margin: 0 0 15px; }
  .kmo-sp-textbox p { margin: 6px 0 0; }
  .kmo-sp-textbox-tit { display: block; font-size: 17px; margin-bottom: 4px; color: #173A5A; }
  #fee_main .kmo-sp-textbox, span.kmo-sp-textbox { border-color: #c9bfae; background: #f7f3ec; }


  /* 報酬表：見出し画像の会員区分ラベルを文字で */
  /* 見出し画像のラベル部分は隠し、見出しの枠だけ見せる（ラベルは下の文字で出す） */
  img[src="img/sub_tit_henkou.png"] { clip-path: inset(0 calc(100% - 139px) 0 0); }
  img[src="img/sub_tit_hoken.png"] { clip-path: inset(0 calc(100% - 110px) 0 0); }
  img[src="img/sub_tit_hokenryou.png"] { clip-path: inset(0 calc(100% - 214px) 0 0); }
  img[src="img/sub_tit_hokenryou_ful.png"] { clip-path: inset(0 calc(100% - 249px) 0 0); }
  img[src="img/sub_tit_jimusyo.png"] { clip-path: inset(0 calc(100% - 209px) 0 0); }
  img[src="img/sub_tit_joseikin.png"] { clip-path: inset(0 calc(100% - 139px) 0 0); }
  img[src="img/sub_tit_kanri_consulting.png"] { clip-path: inset(0 calc(100% - 248px) 0 0); }
  img[src="img/sub_tit_kyuuyo01.png"] { clip-path: inset(0 calc(100% - 160px) 0 0); }
  img[src="img/sub_tit_shugyo.png"] { clip-path: inset(0 calc(100% - 248px) 0 0); }
  img[src="img/sub_tit_syanai_kensyuu.png"] { clip-path: inset(0 calc(100% - 174px) 0 0); }
  img[src="img/sub_tit_tetsuzuki.png"] { clip-path: inset(0 calc(100% - 190px) 0 0); }
  img[src="img/sub_tit_yakuin.png"] { clip-path: inset(0 calc(100% - 138px) 0 0); }
  .kmo-badges { display: flex; gap: 4px; margin: 8px 0 4px; }
  .kmo-badge { flex: 1; border: 1px solid; border-bottom-width: 3px; padding: 4px 2px; font-size: 10px; line-height: 1.4; text-align: center; }
  .kmo-badge b { display: block; font-size: 12px; }
  .kmo-badge-p { background: #d5e5c7; border-color: #5a7a37; color: #3d5524; }
  .kmo-badge-f { background: #c9e3f7; border-color: #2c5f8f; color: #1e4568; }
  .kmo-badge-a { background: #fdebdc; border-color: #f07f1e; color: #c45c08; }

  /* 業務内容の小見出し */
  span#active_sub_tit { font-size: 16px; line-height: 1.5; padding-left: 2em; text-indent: -2em; }

  /* ---------- 各ページの部品 ---------- */
  p#active_sent, span#active_detail_senft { width: auto; }
  img#icon_img_ryoukin { position: static; display: none; }
  img#img_plus_image_sent { float: none; position: static; margin: 0; }
  table#service_table, table#fee_table, table#jimusyo_table, table#jimusyo_table02 {
    display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 料金は項目の下の行に右寄せ（回り込みだと折り返しで行がずれるため） */
  span#fee_line, span#fee_line02 { float: none; display: block; margin-right: 0; width: auto; text-align: right; }
  span#fee_line + br, span#fee_line02 + br { display: none; }
  /* 料金表：金額の途中で改行しない・マスからはみ出さない */
  table#fee_table th, table#fee_table td, table#jimusyo_table th, table#jimusyo_table td,
  table#jimusyo_table02 th, table#jimusyo_table02 td { font-size: 12px; padding: 5px 3px; }
  table#jimusyo_table, table#jimusyo_table02 { border-spacing: 3px; }
  table#jimusyo_table02 > tbody { display: table; width: 100%; }
  span#w_en { white-space: nowrap; font-size: inherit; float: none; display: inline; margin: 0; }
  table#service_table td, table#service_table th { font-size: 12px; padding: 4px 3px; }

  table#profile_table { width: 100%; }
  table#profile_table th { width: 30%; }
  img#main_img { position: static; margin: 10px auto 0; display: block; width: 200px; }
  #main_contents > .kmo-sp-concept { order: 3; }
  .kmo-sp-concept { background: #efefef; padding: 16px 10px; font-size: 13px; line-height: 1.9; text-align: center; margin: 20px 0; font-family: serif; }
  img#d_contact_banner_img { float: none; display: block; margin: 20px auto; }

  table#contat_table { width: 100%; }
  table#contat_table th, table#contat_table td { display: block; width: auto; }
  input#mail_input, input#email_input, textarea#naiyou_contact { width: 100%; box-sizing: border-box; }
  #main_right_contents_other iframe { width: 100%; height: 300px; }

  .dentist_sample .left, .dentist_sample .right { width: 100%; float: none; height: auto; }
  .dentist_sample .left { margin-bottom: 12px; }
  .dentist_sample .right .upper, .dentist_sample .right .lower { height: auto; }


  /* ---------- 画面下の固定ボタン（電話・メール） ---------- */
  .kmo-fixbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    box-shadow: 0 -2px 6px rgba(0,0,0,.2); padding-bottom: env(safe-area-inset-bottom); background: #fff; }
  .kmo-fixbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 4px 9px; font-size: 16px; line-height: 1.3; text-decoration: none; }
  .kmo-fixbar-icon { width: 22px; height: 22px; flex: none; }
  .kmo-fixbar-text { display: block; text-align: left; }
  .kmo-fixbar-sub { display: block; font-size: 11px; }
  .kmo-fixbar-tel { background: #0a3b72; color: #fff !important; font-family: Georgia, "Times New Roman", serif; letter-spacing: .03em; }
  .kmo-fixbar-tel .kmo-fixbar-sub { font-family: inherit; }
  .kmo-fixbar-mail { background: #f7d96b; color: #173A5A !important; font-weight: bold; }
  body { padding-bottom: 64px; }
  .kmo-nav-open .kmo-fixbar { display: none; }

  /* ---------- フッター ---------- */
  ul#footer_mane { width: auto; margin-top: 30px; padding: 0 12px; display: flex; flex-wrap: wrap; justify-content: center; }
  ul#footer_mane li { float: none; padding: 4px 10px; }
  /* 行末に区切り線が残らないよう、スマホでは区切り線を外して2列で並べる */
  ul#footer_mane li { width: 50%; box-sizing: border-box; text-align: center; border-right: none; padding: 6px 4px; }
  div#footer { width: auto; height: auto; padding: 16px 12px 12px; overflow: hidden; }
  div#footer_left_set, p#footer_info_sent { width: auto; float: none; }
  div#footer_fb { float: none; width: auto; margin-top: 12px; }
  p#copyright { position: static; text-align: center; margin-top: 10px; }
  p#copyright img { max-width: 90%; }
}
