@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  color: #444;
  background-color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               system-ui, -apple-system, Roboto, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

P {
   letter-spacing: 2.8px;
	line-height: 2;
	font-size: 17px;
}

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

/* ロゴ2点のレイヤー */
.logos {
  position: absolute;       /* スライダーの上に重ねる */
  top: 50px;                /* 上からのオフセット（調整可） */
  left: 0;
  right: 0;                 /* 幅いっぱいにして左右配置 */
  z-index: 10;              /* スライダーより前面に */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;          /* 画面端の余白（調整可） */
  pointer-events: none;     /* 背景操作を邪魔しないように */
}

/* クリックできる要素だけ操作可能に戻す */
.logos a,
.logos img {
  pointer-events: auto;
}

/* 画像サイズの基本調整（必要に応じて変更） */

.tro_logo {
	background: #ffffff;
    padding: 10px;
    border-radius: 15px;
}

.tro_logo img,
.tel_logo img {
  display: block;
  height: 56px;             /* ロゴの見せたい高さに合わせて調整 */
  width: auto;
}


.main {
  position: relative;  /* これがないと .slider-menu の絶対配置が効きません */
  z-index: 0;
  overflow: visible; /* これが hidden だと .slider-menu が表示されない */
}

.slider-menu {
  position: absolute;
  bottom: 0px;
  left: 20px;
  z-index: 9999;  /* スライダーより前に出すため高めに */
  background: rgba(255, 255, 255, 0.7); /* 任意の半透明背景 */
  padding: 10px 20px;
  border-radius: 8px;
}

/* メニュー横並び */
.slider-menu .gnavi {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* メニューリンク */
.slider-menu .menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
}

.slider-menu .menu a:hover {
  color: #007acc;
}



/* レスポンシブ（任意）：小さめ画面でロゴを少し縮小 */
@media (max-width: 1024px) {
  .tro_logo img,
  .tel_logo img {
    max-width: 150px;
	height: auto;
  }
  .logos { top: 12px; padding: 0 16px; }
}

@media (max-width: 600px) {
  .tro_logo img,
  .tel_logo img {
	max-width: 165px;
    height: auto;
  }
  .logos { top: 8px; padding: 0 12px; }
}


.wrapper {
  max-width: 1200px;      /* 最大幅を1200pxに固定 */
  width: 100%;            /* 小さい画面では100%で縮む */
  margin: 0 auto;         /* 中央寄せ */
  box-sizing: border-box; /* paddingを含めてサイズ計算 */
}

.pc-none {
	display: none;
}

@media (max-width: 768px) {
	.wrapper {
		padding: 0 20px;
	}
	
	.pc-none {
	display: block;
}
	
	.main {
		padding-top: 60px;
	}
}


nav.breadcrumbs {
    padding-left: 5px;
}

nav.breadcrumbs ol {
    font-size: 13px;
}
/*-------------------------下層ヘッダー---------------------*/


:root{
  --green:#14b8a6;
  --green-deep:#0f9e8f;
  --line:#10b98133;
  --y:#fff7c2;
  --y-hover:#ffe89a;
  --y-press:#ffd94f;
  --pink:#f38d8d;
  --text:#2b2b2b;
  --muted:#6b7280;
  --bg:#ffffff;
}

*{box-sizing:border-box}
body{margin:0; font-family: "Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,-apple-system,Roboto,"Segoe UI",sans-serif; color:var(--text); background:var(--bg)}
a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; vertical-align:bottom}

/* ヘッダー全体 */
.site-header{
  border-bottom: 4px solid var(--green);
}

/* HOME / お知らせ */
.util{
  display:flex; justify-content:flex-end; gap:16px;
  padding:10px 16px 0;
  font-size:14px; color:#888;
}
.util a{padding-inline:2px}
.util a:hover{color:var(--green)}
.util .sep{color:#ddd}

/* 上段：ロゴ＋問い合わせ */
.head-top{
  display:grid; align-items:center;
  grid-template-columns: 1fr auto;
  gap:24px;
  padding:10px 16px 16px;
}

.brand{text-align:center;}
.brand small{
  display:block; color:var(--muted); letter-spacing:.08em; margin-bottom:4px; font-size:12px;
}
.brand .logo{
  display:inline-grid; place-items:center;
  grid-auto-flow:column; gap:12px; padding:2px 6px;
}
.logo .mark{
  width:32px; height:32px; border-radius:50%;
  background:var(--green); color:white; display:grid; place-items:center;
  font-weight:700;
}
.logo .ja{
  color:var(--green); font-size:40px; font-weight:700; letter-spacing:.06em;
  white-space:nowrap;
}
.brand .en{
  color:var(--green); letter-spacing:.12em; margin-top:6px; font-size:14px;
}

/* 問い合わせ */
.contact-wrap{
  display:flex; align-items:center; gap:12px; justify-self:end;
}
.badge{
  font-size:12px; padding:6px 10px; border:2px solid var(--green); border-radius:999px; color:var(--green);
}
.cta{
  background:var(--y); border-radius:999px; padding:8px 14px; border:2px solid var(--y);
  box-shadow: 0 2px 0 0 var(--green);
  display:flex; align-items:center; gap:14px; white-space:nowrap;
}
.cta b{color:var(--pink); font-size:22px; letter-spacing:.04em}
.cta span{color:#a3a3a3; font-size:12px}
.cta:hover{background:var(--y-hover)}
.cta:active{background:var(--y-press)}

/* 下層メニュー（ナビゲーション） */
.nav-bar{
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  background:#fff;
}
.nav{
  max-width:1200px; margin:0 auto; display:flex; overflow:auto;
}
.nav a{
  flex:1 0 160px; text-align:center; padding:18px 12px;
  border-right:2px solid var(--line);
  font-weight:700; letter-spacing:.04em;
  transition: background .2s ease, color .2s ease;
  background:#fff;
  white-space:nowrap;
}
.nav a:first-child{border-left:2px solid var(--line)}
.nav a:hover{background:var(--y-hover)}
.nav a:active{background:var(--y-press)}
.nav a.is-current{background:var(--y)}

/* スマホ用 */
.hambox{display:none;}
@media (max-width: 980px){
  .head-top{grid-template-columns: 1fr;}
  .brand{order:1}
  .contact-wrap{order:2; justify-content:center}
  .util{justify-content:center}
}
@media (max-width: 720px){
  .hambox{display:block; padding:10px 12px; border-top:4px solid var(--green); border-bottom:4px solid var(--green)}
  .hambtn{
    width:100%; padding:12px; border:2px solid var(--green); border-radius:12px; background:#fff; font-weight:700;
  }
  .nav{display:none; flex-direction:column}
  .nav.open{display:flex}
  .nav a{flex:none; border-left:2px solid var(--line)}
}

/* 下ライン（デザイン用ガイドライン） */
.guide-line{
  height:4px; background:var(--green); opacity:.35;
}


.section-title {
    text-align: -webkit-center;
    max-width: 90%;
	margin: 0 auto;}


/*-------------------------下層ヘッダーここまで----------------------*/


.section-title_sp {
	text-align: center;
	margin-top: 50px;
}

.sts_inside {
	background: #3dc79f;
    max-width: 400px;
    margin: 0 auto;
    padding: 10px 3px;
    color: #fff;
    font-weight: 500;
}



.map-wrap {
  width: 100%;
  height: 67vh; /* ビューポート高いっぱい */
  margin: 100px 0;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ==== フッター全体 ==== */
.ftr-card {
  padding: 70px 16px 80px;
  display: grid;
  place-items: center;
  background: #f9fafa;
}
.ftr-card__inner {
  width: min(1100px, 92vw);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(16,24,40,.12);
  padding: 36px clamp(20px, 3vw, 40px) 28px;
}

/* ==== 上段 ==== */
.ftr-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
}

.ftr-info {
	max-width: 90%;
}

@media (max-width: 900px) {
  .ftr-top { grid-template-columns: 1fr; }
}

.ftr-name {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: .08em;
  color: #1bbfa8;
  font-weight: 800;
}
.ftr-name small {
  display: block;
  font-size: .44em;
  color: #79d9cb;
  margin-top: 6px;
}
.ftr-addr { margin: 0 0 18px; color: #555; }

.ftr-contact {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ftr-badge {
  display: inline-block;
  padding: .6em 1em;
  border: 2px solid #1ecfb5;
  color: #1ecfb5;
  border-radius: 8px;
  background: #f3fffc;
  font-weight: 700;
}
.ftr-tel {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75em 1.1em;
  border-radius: 8px;
  background: #1ecfb5;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.ftr-tel .ftr-ic { font-size: 1.1em; }

/* ==== 診療時間 ==== */
.ftr-hours__title { margin: 0 0 8px; font-weight: 700; letter-spacing: .24em; }
.ftr-hours__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.ftr-hours__table th,
.ftr-hours__table td {
  padding: 10px 8px;
  padding-left: 0;
  text-align: center;
     font-weight: 500;
}
.ftr-hours__table tr {
  border-bottom: 2px solid #5bd2be;
}
.ftr-hours__table th:first-child { text-align: left; }
.ftr-hours__table td {
  font-size: 18px;
  font-weight: 700;
}
.ftr-hours__note { margin: 4px 0 0; font-size: 14px; color: #555; }

/* ==== 区切り線 ==== */
.ftr-sep {
  border: 0;
  border-top: 1px solid #dfe7e5;
  margin: 24px 0;
}

/* ==== 中段 ==== */
.ftr-mid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
}
@media (max-width: 980px) {
  .ftr-mid { grid-template-columns: 1fr; }
}

.ftr-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
	    line-height: 2;
}
@media (max-width: 700px) {
  .ftr-links {
	   display: block;
	}
	
	
	.ftr-links ul {
    text-wrap: wrap;
}
}
.ftr-links ul { list-style: none; margin: 0; padding: 0; text-wrap: nowrap;}
.ftr-links li { margin: .4em 0; }
.ftr-links a { color: #333; text-decoration: none; text-wrap: wrap;}
.ftr-links a:hover { text-decoration: underline; }

.ftr-illust { text-align: center; }
.ftr-illust img {
  width: min(300px, 50%);
  margin: 0 auto 8px;
}
.ftr-illust figcaption {
  color: #16c8af;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .12em;
}

/* ==== コピーライト ==== */
.ftr-copy {
  text-align: center;
  color: #6a7675;
  font-size: 13px;
  margin: 18px 0 0;
}



footer {
	margin-top: 100px;
}


/* スマホで診療時間表を横スクロール＋フォント縮小 */
@media (max-width: 768px) {
  .timetable th,
  .timetable td,
  .ftr-hours__table th,
  .ftr-hours__table td {
    padding: 6px 4px; /* セル間の余白も少し縮める */
  }
	.map-wrap { height: 50vh;}
}

.hamburger{
  position: fixed; top: 65px; right: 8px;
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center; gap: 6px; flex-direction: column;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  z-index: 1001; cursor: pointer;
}
.hamburger__bar{ width:22px; height:2px; background:#111; border-radius:2px; transition: transform .25s ease, opacity .2s ease; }

.mobile-nav[hidden]{ display:none; }
.mobile-nav{ position:fixed; inset:0; z-index:1000; }
.mobile-nav__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.35); opacity:0; transition:opacity .25s ease; }
.mobile-nav__panel{
  position:absolute; top:0; right:0; height:100%; width:min(86vw,360px);
  background:#fff; box-shadow:-8px 0 24px rgba(0,0,0,.12);
  transform:translateX(100%); transition:transform .28s ease;
  display:flex; flex-direction:column; padding:16px 18px;
}
.mobile-nav.is-open .mobile-nav__overlay{ opacity:1; }
.mobile-nav.is-open .mobile-nav__panel{ transform:translateX(0); }

.mobile-nav__close{
  align-self:flex-end; width:40px; height:40px; border-radius:8px;
  background:#f3f4f6; border:1px solid #e5e7eb; font-size:26px; line-height:1; cursor:pointer;
}

.mobile-nav__list{ list-style:none; padding:12px 0 4px; margin:6px 0 10px; border-top:1px solid #f0f0f0; }
.mobile-nav__list li{ border-bottom:1px solid #f5f5f5; }
.mobile-nav__list a{ display:block; padding:14px 4px; color:#111; text-decoration:none; font-weight:600; }
.mobile-nav__list a:active{ background:#f7f7f7; }

.mobile-nav__cta{ margin-top:auto; display:grid; gap:10px; padding-top:10px; }
.btn{ display:block; text-align:center; padding:12px 14px; border-radius:8px; text-decoration:none; font-weight:700; }
.btn.-primary{ background:#11b08f; color:#fff; }
.btn.-tel{ background:#e7f9f3; color:#0a6a55; }

/* ブレークポイント */
@media (max-width: 960px){
  .hamburger{ display:flex; }
  .subnav, .slider-menu{ display:none !important; }
  body.is-menu-open{ overflow:hidden; }
}

/* === 修正1: モバイルナビをハンバーガーより前面に === */
.mobile-nav{ z-index: 10060; }   /* 旧:10040より高く */

/* === 修正2: 開いているときの×変形を body クラス基準に === */
body.is-menu-open .hamburger .hamburger__bar:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
body.is-menu-open .hamburger .hamburger__bar:nth-child(2){
  opacity: 0;
}
body.is-menu-open .hamburger .hamburger__bar:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* 任意：開いている間はボタン自体を非アクティブにして誤タップ防止 */
body.is-menu-open .hamburger{ pointer-events: none; }

/* Noto Sans JP を全体に固定。hタグも強制適用 */
body,
button, input, select, textarea {
  font-family: "Noto Sans JP", system-ui, -apple-system,
               "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, sans-serif;
}

/* ===================== Dropdown（診療案内のみ） ===================== */

.bold {
  font-weight: bold;
}

/* 親 <li> を基準にポップアップを配置 */
.gnavi > li.menu--services { position: relative; }

/* トリガーの見た目（任意：下矢印） */
.gnavi > li.menu--services > .menu__link {
  position: relative;
  padding-right: 1.2em; /* 矢印分 */
}
.gnavi > li.menu--services > .menu__link::after {
  content: "";
  position: absolute;
  right: 2.9em;
    top: 115%;
  width: .46em; height: .46em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: .8;
}

/* パネル本体（初期は非表示） */
.gnavi > li.menu--services .dd{
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  width: min(520px, 90vw);
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 50;
}

/* 2列×3行のグリッド */
.gnavi > li.menu--services .dd__grid{
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 24px; /* 行×列の間隔 */
}

/* 各リンク */
.gnavi > li.menu--services .dd__item a{
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;           /* 読みやすい濃グレー */
  text-decoration: none;
  background: #f8fafc;      /* 薄い面 */
  border: 1px solid #e2e8f0;/* ごく薄い枠 */
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.gnavi > li.menu--services .dd__item a:hover{
  background: #e6fff9;      /* ミント寄りの薄色 */
  box-shadow: 0 2px 8px rgba(0,0,0,.06) inset;
  color: #008d76;
}

/* 小さな三角（パネル上辺の目印） */
.gnavi > li.menu--services .dd::before{
  content:"";
  position:absolute;
  top:-8px; left:50%;
  transform: translateX(-50%) rotate(45deg);
  width:16px; height:16px;
  background:#fff;
  border-left:1px solid rgba(0,0,0,.06);
  border-top:1px solid rgba(0,0,0,.06);
}

/* ==== 表示トリガー：PCの hover、キーボードの focus に対応 ==== */
/* マウスがある環境でホバー表示（スマホ誤作動を防ぐ） */
@media (hover:hover) and (pointer:fine){
  .gnavi > li.menu--services:hover .dd,
  .gnavi > li.menu--services:focus-within .dd{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
  }
}

/* キーボード操作でも開ける（アクセシビリティ） */
.gnavi > li.menu--services:focus-within > .menu__link {
  outline: 2px solid rgba(0,179,136,.35);
  outline-offset: 3px;
}
.gnavi > li.menu--services:focus-within .dd{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

/* 画面が狭い場合は表示幅を自動調整（SPはそもそも .sp_none で非表示想定） */
@media (max-width: 960px){
  .gnavi > li.menu--services .dd{ width: min(460px, 92vw); }
}



/* ===== SP専用メインビジュアル切替 ===== */
/* PCではスライダー（.hero__pc）を表示、SPでは静止画（.hero__sp）を表示 */
.sp_none { display: block; }   /* PCで表示する用 */
.pc_none { display: none; }    /* PCで隠す用 */

@media (max-width: 767px){
  .sp_none { display: none !important; }   /* SPではPC用を隠す */
  .pc_none { display: block !important; }  /* SPではSP用を表示 */
}

/* SPメイン画像の見え方（サイズ・トリミング） */
.hero__sp { position: relative; overflow: hidden; }
.hero__sp picture,
.hero__sp img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* 画像が 1366×768 なので16:9で安定表示 */
  object-fit: cover;      /* 画面幅に合わせて端をトリミング */
}

/* ==== Google Map：余白ゼロ & 比率管理（最終オーバーライド） ==== */
.map-wrap{
  position: relative;
  width: 100%;
  line-height: 0;     /* ラインボックス由来の隙間を排除 */
  font-size: 0;       /* 念のため */
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;  /* デスクトップ既定の比率 */
  overflow: hidden;      /* はみ出し防止 */
}

.map-wrap iframe{
  position: absolute;
  inset: 0;              /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100% !important;  /* コンテナいっぱいにフィット */
  border: 0;
  display: block;
  margin: 0;
  vertical-align: top;
}

/* タブレット以下：縦を増やす */
@media (max-width: 1024px){
  .map-wrap{ aspect-ratio: 4 / 3; }
}

/* スマホ：正方形で視認性UP */
@media (max-width: 768px){
  .map-wrap{ aspect-ratio: 1 / 1; margin-top: 100px;}
}

/* 古いブラウザ向けフォールバック（aspect-ratio非対応時） */
@supports not (aspect-ratio: 1 / 1){
  .map-wrap{ position: relative; }
  .map-wrap::before{
    content:"";
    display:block;
    padding-top:56.25%; /* 16:9 */
  }
  .map-wrap iframe{ position:absolute; inset:0; height:100% !important; }
  @media (max-width:1024px){ .map-wrap::before{ padding-top:75%; } }  /* 4:3 */
  @media (max-width:560px){ .map-wrap::before{ padding-top:100%; } }  /* 1:1 */
}
