@charset "utf-8";
/* =========================================================
   てじま歯科医院  静的HTML版の追加CSS（2026.10）
   style.css＝旧テーマのデザインそのまま／このファイル＝静的化の調整とスマホ表示
   ========================================================= */

/* ---------- 静的化の調整（PC） ---------- */
.sp-only{display:none !important}
.menu-btn,.sp-menu,.sp-tel-btn{display:none}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
a[href^="tel:"]{color:inherit;text-decoration:none}
/* 明朝体：游明朝・ヒラギノがない端末（Android等）でも明朝で表示 */
.min{font-family:"Times New Roman","游明朝",YuMincho,"ヒラギノ明朝 ProN W3","Hiragino Mincho ProN","Noto Serif JP","Noto Serif CJK JP",serif}
#general,#perio,#beauty,#child,#dentaldoc,#serec,#parking,#concept,#equipment,#impact,#care{scroll-margin-top:20px}

/* 地図（旧サイトのプラグインの代わりに Google マップを埋め込み） */
.map-frame{width:100%}
.map-frame iframe{display:block;width:100%;height:100%;border:0}

/* ふわっと表示（旧 WOW.js + animate.css の必要部分だけ） */
html:not(.js) .wow{visibility:visible}
.wow{visibility:hidden}
.animated{visibility:visible !important;animation-duration:1s;animation-fill-mode:both}
.fadeIn.animated{animation-name:fadeIn}
.fadeInUp.animated{animation-name:fadeInUp}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes fadeInUp{from{opacity:0;transform:translate3d(0,40px,0)}to{opacity:1;transform:none}}

/* 診療内容：メニュー画像から各項目へ（旧サイトはリンクが空で押せなかった） */
#guide-menu-head ul li a{text-decoration:none;color:inherit}
#guide-menu-head ul li a:hover{opacity:.8}

/* 休日急患センター：出典の注記 */
#holiday-source{font-size:12px;line-height:1.8;color:#777;margin-top:20px}
#holiday-source a{color:#E77C95}

/* お知らせ（TOP・一覧） */
#js-top-news{margin:0;padding:0}
.news-all-box{scroll-margin-top:20px}
h3.news-all-catch,.news-all-box h3{background:none;padding-top:0;text-align:left;margin-bottom:12px;font-size:22px;line-height:1.5}
.news-all-text p{margin-bottom:12px}
.news-img{margin:16px 0}
.news-img img{display:block;max-width:100%;height:auto;border:1px solid #EEE}
.news-files{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;list-style:none;padding:0}
.news-files a{
  display:inline-flex;align-items:center;gap:10px;max-width:100%;box-sizing:border-box;padding:8px 18px 8px 14px;
  border:1px solid #E77C95;color:#E77C95 !important;text-decoration:none;font-size:14px;line-height:1.4;background:#FFF;border-radius:6px
}
.news-files a::before{content:"";width:6px;height:6px;border-top:2px solid #E77C95;border-right:2px solid #E77C95;transform:rotate(45deg);flex-shrink:0}
.news-files a.pdf::before{width:16px;height:20px;border:0;transform:none;background:linear-gradient(135deg,#fff 0 30%,transparent 30%),#D02619;border-radius:2px}
.news-files a small{flex-shrink:0;font-size:10px;color:#fff;background:#D02619;padding:0 5px;letter-spacing:.06em}

/* 404 */
.notfound p{text-align:center}
.notfound-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 24px;margin:20px 0 40px;list-style:none;padding:0}
.notfound-links a{color:#E77C95}

/* =========================================================
   スマホ（767px以下）
   旧サイトはスマホ用プラグイン（WPtouch）で別表示だったため、ここで新しく組み直し
   ========================================================= */
@media (max-width:767px){
  #wrapper{min-width:0;overflow:hidden}
  body{padding-bottom:58px}
  body,p,td,th,li{font-size:14px}
  .sp-only{display:block !important}
  img{height:auto}
  h3{font-size:20px;background-size:44px;padding-top:52px;margin-bottom:22px}
  .home h3{background-size:52px;padding-top:60px}
  h3 span{font-size:13px}
  .more-btn a{padding:14px 22px;font-size:13px}

  /* ---- ヘッダー ---- */
  #header{width:auto;height:auto;padding:8px 64px 10px 12px;background:rgba(255,255,255,.92)}
  #header h1{position:static;font-size:9px;line-height:1.4;margin:0 0 6px;color:#999}
  #header nav{position:static;margin:0}
  #header nav ul.nav-list{display:none}
  #logo{float:none;width:auto;height:auto;margin:0}
  #logo a{width:150px;height:106px;background-size:contain;background-position:left center;margin:0}
  #head-con-area{display:none}
  .menu-btn{display:block;position:absolute;top:30px;right:8px;width:50px;height:50px;padding:0;border:0;background:none;cursor:pointer;z-index:300}
  .menu-btn span{display:block;width:26px;height:2px;margin:6px auto;background:#E77C95;transition:.3s}
  .menu-btn em{display:block;font-style:normal;font-size:9px;color:#E77C95;line-height:1;letter-spacing:.06em;font-family:"Times New Roman",serif}
  .menu-open .menu-btn{position:fixed;top:10px}
  .menu-open .menu-btn span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .menu-open .menu-btn span:nth-child(2){opacity:0}
  .menu-open .menu-btn span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  .menu-open{overflow:hidden}
  .sp-menu{display:block;position:fixed;inset:0;z-index:250;box-sizing:border-box;padding:70px 20px 90px;background:#FFF;overflow-y:auto;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
  .menu-open .sp-menu{opacity:1;visibility:visible}
  .sp-menu-list{margin:0 0 24px;padding:0;list-style:none;border-top:1px solid #F0EFE0}
  .sp-menu-list li{border-bottom:1px solid #F0EFE0;font-size:16px}
  .sp-menu-list a{display:block;padding:13px 6px;color:#333;text-decoration:none;font-family:"Times New Roman","游明朝",YuMincho,"Hiragino Mincho ProN","Noto Serif JP","Noto Serif CJK JP",serif}
  .sp-menu-list a::after{content:"›";float:right;color:#E77C95}
  .sp-menu-list li.sub a{padding:9px 6px 9px 24px;font-size:14px;color:#777}
  .sp-menu-tel{text-align:center}
  .sp-menu-tel a{display:block;background:#E77C95;color:#FFF !important;border-radius:8px;padding:12px;font-size:20px;font-family:"Times New Roman",serif;letter-spacing:.06em}
  .sp-menu-tel small{display:block;font-size:12px;color:#777;margin-top:6px}

  /* ---- 下層ページの見出し画像 ---- */
  #header-catch-area,.page-id-6 #header-catch-area,.page-id-7 #header-catch-area,.page-id-8 #header-catch-area{background-attachment:scroll;padding:150px 0 110px;margin-top:-130px}
  #header-catch-area::before{height:200px}
  #header-catch-area::after{height:90px}
  h2#page-title{font-size:22px}
  span.page-title-name{padding:52px 14px 8px;background-size:40px !important}
  span.page-title-eng{font-size:13px}
  #main{margin:-60px auto 0;padding-top:10px}
  #main::before{height:60px}

  /* ---- 共通レイアウト ---- */
  #contents-area{width:auto;padding:0 16px}
  .home #contents-area{padding:0}
  #contents{width:auto;float:none;margin:0}
  #breadNavi{font-size:11px;margin-bottom:16px}
  #side_left{width:auto;float:none;margin:40px 0 0}
  #side-doc-banner{width:auto;max-width:300px;margin:0 auto 24px}
  #side-guide-area ul{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0}
  #side-guide-area ul li{width:auto !important;float:none !important;margin:0 !important}
  /* 医院情報・診療時間は各ページ下の「お問い合わせ」と重複するのでスマホでは省略 */
  #side-clinic-area{display:none}
  .time-t{width:100%}
  .time-t th,.time-t td{font-size:12px !important;padding:6px 1px !important}
  .time-t td img{width:14px}
  .time-t td.time-t-time{white-space:nowrap}

  /* ---- TOP：からだの健康は口内環境から ---- */
  #top-header-area{padding-top:150px;background-size:auto 100%;background-position:center top}
  #top-header-area::before,#top-header-area::after{height:200px}
  #top-kounai-area{padding-bottom:40px}
  #top-kounai{width:auto;padding:0 16px}
  #top-kounai-catch{font-size:32px;margin-bottom:20px}
  #top-kounai-catch span{font-size:26px}
  #top-kounai-catch:before,#top-kounai-catch:after{width:26px;height:30px;margin:0}
  #top-kounai-catch:before{margin-left:-20px;top:-6px}
  #top-kounai-catch:after{margin-right:-20px;bottom:-14px}
  #top-kounai-catch2{font-size:20px;margin-bottom:16px}
  #top-kounai-text{font-size:13px;line-height:1.9;text-shadow:0 0 6px #fff,0 0 6px #fff}
  #top-kounai-women{position:static;text-align:center;margin:10px 0 0}
  #top-kounai-women img{width:170px}
  #top-kounai-tejima{right:-40px;top:-40px;opacity:.7}
  #top-kounai-tejima img{width:220px}
  #top-kounai-cloud1,#top-kounai-cloud2{display:none}
  #top-kounai-women{order:2}
  #top-doc-area{padding-bottom:120px}
  #top-doc{width:auto;padding:20px 16px 0}
  #top-doc-catch-top{font-size:18px}
  #top-doc-catch-top span{font-size:11px}
  #top-doc-catch{font-size:24px;margin-bottom:16px}
  .top-doc-catch-l{font-size:34px}
  .top-doc-catch-s{font-size:18px}
  ul#top-doc-check{text-align:left;max-width:300px;margin:0 auto 14px}
  ul#top-doc-check li{display:block;margin:0 0 8px;font-size:14px}
  #top-doc-text{font-size:13px;text-align:left}
  #top-doc-brush{display:none}
  #top-doc .top-doc-point{position:static;width:auto;height:auto;border-radius:10px;padding:16px 4px 10px}
  #top-doc{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  #top-doc > *:not(.top-doc-point){grid-column:1/-1}
  #top-doc-catch-top{order:-2}
  .top-doc-point{order:-1}
  .top-doc-point-icon{margin-top:0;margin-bottom:6px;height:28px}
  .top-doc-point-icon img{max-width:28px;max-height:28px}
  .top-doc-point-no{font-size:11px}
  .top-doc-point-text{font-size:13px}
  #top-doc-catch{margin-top:16px}

  /* ---- TOP：診療方針・診療紹介・お知らせ・医院情報 ---- */
  #top-concept{width:auto;padding:0 16px}
  #top-concept-catch{font-size:15px;text-align:left}
  #top-concept-catch br{display:none}
  #top-concept-list ul{display:grid;grid-template-columns:1fr 1fr;gap:20px 14px;padding:0}
  #top-concept-list ul li{width:auto !important;float:none !important;margin:0 !important;padding:0 !important;border:0 !important}
  .top-concept-box-catch::before{width:100%;font-size:34px}
  .top-concpet-box-text{font-size:12.5px;line-height:1.8}
  #top-guide{width:auto;padding:0 16px}
  #top-guide-list ul{padding:0}
  #top-guide-list ul li{width:auto !important;float:none !important;margin:0 0 20px !important;display:flex;gap:12px;align-items:flex-start}
  #top-guide-list ul li::after{display:none}
  .top-guide-box-l{width:38%;flex-shrink:0;float:none}
  .top-guide-box-r{width:auto;flex:1;float:none}
  .top-guide-box-text{font-size:12.5px;line-height:1.8}
  #top-news{width:auto;padding:0 16px}
  #top-news-l,#top-news-r{width:auto;float:none}
  #top-news-l{text-align:center;margin-bottom:20px}
  .top-news-dai{font-size:15px;line-height:1.6}
  .top-news-dai .news-date{display:block;font-size:12px}
  .top-news-text{font-size:12.5px}
  #top-gaikan-area{height:240px;background-size:auto 100% !important}
  #top-gaikan-area::before{height:100px}
  div#top-info-l,#top-info-r{float:none;width:auto}
  #top-info-r{padding:20px 16px 30px}
  #top-info-map .map-frame{height:300px !important}
  #top-info-catch{font-size:15px}
  #top-info-name{font-size:24px}
  #top-info-tel{font-size:28px}
  #top-info-banner ul{padding:0}
  #top-info-banner ul li{float:none !important;width:auto !important;margin:0 0 8px !important;display:block}

  /* ---- 医院案内 ---- */
  #clinic-concept-title{font-size:15px;text-align:left}
  #clinic-concept-title br{display:none}
  .clinic-concept-img,#clinic-concept-area ul li:nth-child(even) .clinic-concept-img{float:none;width:auto;height:220px}
  .clinic-concept-img img{width:100%;height:100%;object-fit:cover}
  .clinic-concept-text-box,#clinic-concept-area ul li:nth-child(even) .clinic-concept-text-box{float:none;width:auto;padding:16px 0 24px}
  .clinic-concept-catch{font-size:22px}
  .clinic-concept-catch span{font-size:26px}
  .clinic-concept-catch::before{font-size:40px}
  #clinic-equip-area ul{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;padding:0}
  #clinic-equip-area ul li{width:auto !important;float:none !important;margin:0 !important}
  .clinic-equip-text{font-size:12.5px}

  /* ---- 診療内容 ---- */
  #guide-top-tel span{font-size:24px;display:block;white-space:nowrap}
  #guide-menu-head ul{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0}
  #guide-menu-head ul li{width:auto !important;float:none !important;margin:0 !important}
  .guide-menu-name{font-size:12px;line-height:1.4}
  .menu-name{font-size:24px}
  .menu-setumei-l,.menu-setumei-r,#perio .menu-setumei-l,#child .menu-setumei-l,.menu-box-l,.menu-box-r,#child .menu-box-r,#child .menu-box-l{float:none;width:auto}
  .menu-setumei-l,.menu-box-r{margin-bottom:14px}
  .child-menu-img{height:auto}
  #generel-box-img{display:flex;gap:8px;padding:0}
  #generel-box-img li{width:auto !important;flex:1;margin:0 !important}
  #menu-white-area-l,#menu-white-area-r{float:none;width:auto;margin:0 0 16px}
  #menu-white-area ul{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0}
  #menu-white-area ul li{width:auto !important;float:none !important;margin:0 !important}
  #serec{padding-bottom:20px}
  #serec-title{font-size:24px}
  #serev-women{display:none}
  #serec ul.menu-box-list li{float:none;width:auto}
  #dentaldoc-top-catch{font-size:20px}
  #dentaldoc-box{padding:20px 14px !important}
  #dentaldoc-women,#dentaldoc-brush{display:none}
  #dentaldoc-box-catch-top{font-size:18px}
  #dentaldoc-box-catch{font-size:22px}
  .dentaldoc-box-catch-l{font-size:30px}
  ul#dentaldoc-check{width:auto}
  ul#dentaldoc-check li{float:none;width:auto}
  #dentaldoc-point ul{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0}
  #dentaldoc-point ul li{width:auto !important;float:none !important;margin:0 !important}
  .dentaldoc-point-name{font-size:12px}
  #dentaldoc-tel{font-size:30px}

  /* ---- 歯と健康 ---- */
  #health-top-catch{font-size:16px}
  #health-top-catch br,#health-top-text br{display:none}
  .health-body-top-text,.health-body-top-img{float:none;width:auto}
  .health-body-top-img{height:auto;margin-bottom:16px}
  #health-body-box-area ul{padding:0}
  #health-body-box-area ul li{width:auto !important;float:none !important;margin:0 0 14px !important}
  .health-body-box-img{float:none;width:100%;height:auto;margin:0 0 10px}
  #health-care-box ul{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;padding:0}
  #health-care-box ul li{width:auto !important;float:none !important;margin:0 !important}
  #health-bottom-text{font-size:20px}

  /* ---- 交通アクセス ---- */
  #access-top-catch{font-size:15px}
  #access-google .map-frame{height:300px !important}
  #access-info-area-l,#access-info-area-r{float:none;width:auto;text-align:center}
  #access-info-tel{font-size:28px}
  .parking-list-box{float:none;width:auto}

  /* ---- 提携・休日急患・リンク・サイトマップ ---- */
  .teikei-box-l,.teikei-box-r{display:block;float:none;width:auto;padding:0}
  .teikei-box-l{margin-bottom:10px}
  #teikei-top-catch,#holiday-top-catch,#link-top-catch,#clinic-equip-top-text{font-size:16px;margin-bottom:20px}
  .holiday-floor-tel{display:block;white-space:nowrap}
  .holiday-floor-name,.holiday-floor-tel{float:none !important;width:auto !important}
  .holiday-floor-tel,.holiday-floor-floor{font-size:22px}
  #holiday-map .map-frame{height:260px !important}
  .holiday-time-area .time-t th.time-t-kamoku{font-size:11px !important}
  .holiday-time-area .time-t td.time-t-time{white-space:normal;font-size:11px !important}
  #link-list-area ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;padding:0}
  #link-list-area ul li{width:auto !important;float:none !important;margin:0 !important;min-width:0;box-sizing:border-box}
  .link-list-url{word-break:break-all;font-size:11px}
  #sitemap-area-l,#sitemap-area-r{float:none;width:auto}

  /* ---- フッター ---- */
  #footer-area{padding-top:150px;background-attachment:scroll;background-size:auto 260px;background-position:center top;margin-top:-30px}
  #footer-area::before{height:90px}
  #footer-area::after{display:none}
  #footer{width:auto;padding:20px 16px 15px;background:#FFF}
  #footer nav ul.nav-list{display:none}
  #footer #logo{margin:0 auto 10px;width:150px}
  #footer #logo a{width:150px;background-position:center}
  #footer-link ul{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;padding:0}
  #footer-link ul li{float:none;margin:0}
  #footer-link ul li::after{display:none}
  address{font-size:11px;line-height:1.7}

  /* 画面下の電話ボタン */
  .sp-tel-btn{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:200;height:58px;
    background:#E77C95;color:#FFF !important;text-decoration:none !important;align-items:center;justify-content:center;gap:10px;
    font-family:"Times New Roman",serif;font-size:22px;letter-spacing:.06em;box-shadow:0 -2px 8px rgba(0,0,0,.12)
  }
  .sp-tel-btn span{font-size:18px}
  .sp-tel-btn small{font-family:sans-serif;font-size:11px;line-height:1.3;text-align:left;letter-spacing:0}
  .menu-open .sp-tel-btn{z-index:260}
}
