@charset "UTF-8";

html{
    scroll-behavior: smooth;
}

a{
    color: dodgerblue;
}

.arialblack{
    font-family: "arial black";
}

#access_map{
    max-width: 720px;
    aspect-ratio: 16 / 9;
    margin: auto;
}
#access_map iframe{
    width: 100%;
    height: 100%;
}

h2{
    all: initial;
    display: block;
    font-size: 1.7rem;
    color: #333;
    border-bottom: 2px solid lightpink;
    margin: 20px auto;
    padding-bottom: 5px;
}
h2:before{
    content: "";
    display: inline-block;
    width: 50px;
    height: 43px;
    margin-right: 10px;
    background-image: url(https://takuma-clinic.com/wp/wp-content/uploads/icon_origin-150x150.png);
    background-size: cover;
}

/****************************************
  マーカーを引く
****************************************/
.under_line {
  position: relative; /* ← 基準座標を作る */
  display: inline-block;
}

.under_line::before {
  content: "";
  position: absolute;   /* ← これが重要 */
  left: 0;
  bottom: 0.1em;        /* テキストの少し下に敷く（調整可） */
  width: 100%;
  height: 0.6em;        /* マーカーの太さ（調整可） */
  background: gold;
  z-index: -1;          /* テキストの後ろに送る */
}


/* カスタマイズから転記 */

/* #site-header-container{
	flex-wrap: nowrap;
}
.site-header-container .site-header-logo{
	width: fit-content;
}
.site-header-logo:after{
	content:"";
	display: block;
	width: 280px;
	aspect-ratio: 16 / 3;
	background-image: url(https://takuma-clinic.com/wp/wp-content/uploads/hd_info.png);
	background-size: contain;
	background-repeat: no-repeat;
} */

/* ===== ヘッダー背景 ===== */
.page-header {
  /* background-image: url(https://kunou-clinic.com/wp/wp-content/uploads/2022/04/bg_caption.jpg); */
  background-size: cover;
  color: black;
}

h2:before {
  content: "";
  background-image: url(https://takuma-clinic.com/wp/wp-content/uploads/cropped-icon_origin.png);
  background-size: cover;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
  width: 50px;
  height: 50px;
}

/* ===== ヘッダー全体の枠 ===== */
#site-header-container {
  width: 100vw;
  display: block;
}

/* ====== ロゴ＋電話番号をflexで左右に配置 ====== */
.site-header-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
}

/* 左側のロゴ */
.site-header-logo a {
  display: inline-block;
  padding-bottom: 5px;
/*   border-bottom: 3px solid lightpink; */
}

/* 右側の電話番号画像 */
.site-header-logo::after {
  content: "";
  display: block;
  background-image: url(https://takuma-clinic.com/wp/wp-content/uploads/hd_info.png);
  width: 380px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* ===== ナビゲーション中央寄せ ===== */
#site-header-container nav {
  margin: 0px auto;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 1000px) {
  .site-header-logo {
    flex-direction: column;
    align-items: center;
  }

  .site-header-logo::after {
    content: none; /* スマホでは電話番号画像を消す */
  }

  .site-header-logo a img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* ===== フッター調整 ===== */
footer.site-footer .site-footer-copyright p:nth-child(2) {
  display: none;
}

.ft_info_bt{
  display: flex;
  justify-content: center;
  gap: 2em;
  align-items: center;
}
.ft_info_bt a{
  display: block;
  width: fit-content;
  padding: 3px 8px;
  background-color: palevioletred;
  color: white;
  border-radius: 4px;
  text-align: center;
  font-size: 20px;
}
.ft_info_bt a i{
  margin-right: 0;
}


/* 投稿一覧のサムネ画像の非表示 */
.vk_post_imgOuter{
  display: none;
}

/* 投稿ページの更新日と更新ユーザー名、最下段のカテゴリ表示の非表示 */
.entry-meta-item.entry-meta-item-updated,
.entry-meta-item.entry-meta-item-author,
.entry-meta-data-list.entry-meta-data-list--category{
  display: none;
}




/* 固定ページのタイトル */
.page-header-title{
  color: white;
}



/* 予防接種一覧テーブル
-------------------------------------------------------------- */

.scroll_wrap{
    overflow-x: auto;
    margin: 0px auto 2em auto;
}

/* テーブルのリセット ***********************************/
#vaccine, #vaccine *{
    all: initial;
}
#vaccine{ display: table; }
#vaccine thead{ display: table-header-group; }
#vaccine tbody{ display: table-row-group; }
#vaccine tfoot{ display: table-footer-group; }
#vaccine tr{ display: table-row; }
#vaccine tr th, #vaccine tr td{ display: table-cell; white-space: nowrap;}
/* /テーブルのリセット ***********************************/

#vaccine{
    width: fit-content;
    margin: auto;
    border-spacing: 1px;
    background-color: hotpink;
}

#vaccine tr th, #vaccine tr td{
    background-color: white;
    padding: 5px 10px;
    vertical-align: middle;
}
#vaccine tr th{
    background-color: pink;
    color: #444;
    font-weight: bold;
    text-align: center;
}


/******************************************************
  15周年バナー
*******************************************************/
#anniversary{
    margin: 5px 0px;
    font-size: 18px;
}
@media (max-width:420px){
    #anniversary{ font-size: 16px; }
}

#anniversary .wrap{
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: auto;
    padding: 10px 20px;
    box-sizing: border-box;
    font-family: "Zen Maru Gothic";
    font-size: 1em;
    text-align: center;
    background: linear-gradient(maroon,sienna, maroon);
    color: white;
    border: 3px outset gold;
    border-radius: 12px;
}
#anniversary .wrap span{
    margin: auto 3px;
    font-family: "arial black";
    font-size: 1.3em;
    font-weight: bold;
    color: gold;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}
#anniversary .wrap:before,#anniversary .wrap:after{
    content: "";
    position: absolute;
    display: block;
    width: fit-content;
    top: 15px;
    transform: translateY(-50%);
    font-size: 1.0em;
    color: white;
    line-height: 30px;
}

#anniversary .wrap:before{
    left: 10px;
}
#anniversary .wrap:after{
    right: 10px;
}


/*****************************************
 H2、H3、H4配下のindent設定
*****************************************/
.indent_l1 { margin-left: 0em !important; }
.indent_l1.wp-block-image { margin-left: auto !important; }
.indent_l2 { margin-left: 1em !important; }
.indent_l2.wp-block-image { margin-left: auto !important; }
.indent_l3 { margin-left: 2em !important; }
.indent_l3.wp-block-image { margin-left: auto !important; }
.indent_l4 { margin-left: 3em !important; }
.indent_l4.wp-block-image { margin-left: auto !important; }
.indent_l5 { margin-left: 4em !important; }
.indent_l5.wp-block-image { margin-left: auto !important; }


/*****************************************
 アコーデオンメニュー
*****************************************/
.bt_accordion, .bt_accordion *{ cursor: pointer; user-select: none; }
.bt_accordion{ position: relative; }
.bt_accordion .btOpenClose{
    position: absolute;
    top: 50%; right: 15px;
    transform: translateY(-50%);
    display: block;
    width: 22px;
    aspect-ratio: 1 / 1;
}
.bt_accordion .btOpenClose div{
    position: absolute;
    top: 50%; right: 50%;
    width: 20px; height: 3px;
    background-color: maroon;
    transition: 0.5s;
}
.bt_accordion .btOpenClose div:nth-child(1){
    transform: translateY(-50%) rotate(0deg);
}
.bt_accordion .btOpenClose div:nth-child(2){
    transform: translateY(-50%) rotate(90deg);
}
.bt_accordion.acopen .btOpenClose div:nth-child(1){
    transform: translateY(-50%) rotate(0deg);
}
.bt_accordion.acopen .btOpenClose div:nth-child(2){
    transform: translateY(-50%) rotate(540deg);
}

.bt_accordion + .accordion{
    transition: 0.5s;
    overflow: hidden;
    margin-bottom: 2em;
}
.bt_accordion + .accordion.hyde{
    height: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}


/****************************************
  診療案内
****************************************/
.hours-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin: auto;
    margin-bottom: 30px;
    background: #fffaf0; /* ごく薄いイエロー */
    border-radius: 6px;
    overflow: hidden; /* 角丸を反映 */
    font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.hours-table th {
    background: #f8cbe0; /* ピンク */
    color: #7a2a48;      /* 少し濃い文字色 */
    padding: 12px;
    font-weight: bold;
    border-bottom: 2px solid #f0a4c4;
    text-align: center;
}
.hours-table th:first-child{
	width: 6em;
	padding: 5px 3px;
}

.hours-table td {
    padding: 12px;
    border-bottom: 1px solid #f5d9e6; /* ピンク系のボーダー */
    text-align: center;
    color: #444;
}

.hours-table tr:last-child td {
    border-bottom: none;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .hours-table th:not(:first-child),
    .hours-table td {
        padding: 8px;
        font-size: 14px;
    }
}

/****************************************
  目次
/****************************************
/* 初期設定 */
:root{
    --mokuji-bg-color: whitesmoke;
    --mokuji-title: maroon;
    --mokuji-link: dodgerblue;
}
.mokuji, .mokuji *{
    margin: 0;
    padding: 0;
    user-select: none;
    font-size: 16px;
    transition: 0.3s;
}
.mokuji li{
    display: list-item;
    color: var(--mokuji-link); 
    cursor: pointer;
}

/* 本体設定 */
.mokuji{
    background-color: var(--mokuji-bg-color);
    width: fit-content;
    min-width: 260px;
    max-width: 560px;
    margin: 1em auto !important;
    padding: 1em;
    box-sizing: border-box;
    color: var(--mokuji-link);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.mokuji .title{
    cursor: pointer;
    color: var(--mokuji-title);
}
.mokuji .title:after{
    content: "▲";
    margin-left: 10px;
}
.mokuji > ul{
    margin: 8px auto auto 2em;
    list-style-type: disc;
}
.mokuji ul ul{
    margin: 0 auto auto 1em;
    list-style-type: circle;
}
.mokuji.hyde{
    min-width: 0px !important;
}
.mokuji.hyde .title:after{
    content: "▼";
}
.mokuji.hyde > ul{
    height: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    overflow: hidden !important;
}

