/*
Theme Name: 花水木
Theme URI: https://hanamizuki.tv/
Description: 花水木 介護・医療サービス テーマ（maxpress(wrapperbreak)ベースのクラシックテーマ）
Version: 2.0.0
Author: 花水木
Author URI: https://hanamizuki.tv/
License: All Rights Reserved
Text Domain: hanamizuki
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
*/

/* ===== サイドバー追加スタイル ===== */
.side-item {
	margin-bottom: 20px;
}
/* .side-item-header {
	margin-bottom: 8px;
} */
.side-item-body {
	font-size: 13px;
	line-height: 1.6;
	color: #333;
	border-right: solid 1px #f48989;
    border-bottom: solid 1px #f48989;
    border-left: solid 1px #f48989;
	padding: 15px;
    border-radius: 0 0 4px 4px;
}
.side-item-body p.address {
	margin: 5px 0;
	font-size: 12px;
}

/* ===== ページコンテンツ余白 ===== */
.page-content {
	margin-bottom: 20px;
}

/* ===== ナビゲーションページネーション ===== */
.nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}
.page-numbers {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid #ccc;
	color: #449635;
	font-size: 13px;
	text-decoration: none;
}
.page-numbers.current {
	background-color: #449635;
	color: #fff;
	border-color: #449635;
}
.page-numbers:hover {
	background-color: #f0f0f0;
	text-decoration: none;
}

/* ===== サイドメニュー装飾 ===== */
.menu-decoration {
	margin: 0;
}
.menu-decoration img {
	width: 100%;
}

/* ===== フッターコピーライト ===== */
p.copyright {
	text-align: center;
	font-size: 12px;
	color: #3B3B3B;
	padding: 8px 0;
	background-color: #ffffff;
	border-top: 3px solid #f48989;
	margin-top: 5px;
}

/* ===== bxSlider 幅調整・デフォルトスタイルリセット ===== */
#slide-slide1 {
	width: 1000px;
	margin: 0 auto;
	overflow: hidden;
}
#slide-slide1 ul {
	margin: 0;
	padding: 0;
}
#slide-slide1 li {
	list-style: none;
}
#slide-slide1 img {
	width: 1000px;
	display: block;
}
#slide-slide1 .bx-wrapper {
	margin: 0px auto 32px;
	border: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	background: transparent;
}
#slide-slide1 .bx-wrapper .bx-controls-auto {
	display: none;
}

/* ===== メインビジュアル ドットナビゲーション ===== */
#slide-slide1 .bx-wrapper .bx-pager {
	display: block;
	padding-top: 8px;
}
#slide-slide1 .bx-wrapper .bx-pager.bx-default-pager a {
    text-indent: -9999px;
    background-color: #666;
    width: 10px;
    height: 10px;
    margin: 0px 5px;
    display: block;
    outline: 0;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}
#slide-slide1 .bx-wrapper .bx-pager.bx-default-pager a.active,
#slide-slide1 .bx-wrapper .bx-pager.bx-default-pager a:hover {
	background-color: #000;
}

/* ===== ヘッダーlogo h1非表示（SEO用テキスト）===== */
/* #header_logo h1 {
	font-size: 10px;
	color: transparent;
	height: 1px;
	overflow: hidden;
	margin: 0;
} */
/* ===== ヘッダーlogo===== */
#header_logo h1 {
    display: inline-block;
    font-size: 11px;
    margin-left: 10px;
    padding-bottom: 15px;
}

/* ===== トップページ サービス一覧 ===== */
.top-h4 {
	font-size: 18px;
	color: #f7931e;
	border-top: 2px dotted #86b739;
	border-bottom: 2px dotted #86b739;
	padding: 5px 0;
	text-align: center;
	font-weight: bold;
}
.top-h4 a {
	color: #f7931e;
}
.top-h4 a.blue {
	color: #57adc1;
}
ul.top {
	margin: 10px 0;
}
ul.top li {
	padding: 5px 0 0 15px;
	background-image: url(../../../../uploads/sites/48/arrow-01.png);
	background-repeat: no-repeat;
	background-position: 5px 12px;
}
.home-banner {
	margin-bottom: 10px;
}
.home-banner img {
	width: 100%;
	display: block;
}

/* ===== スマートフォン main.css 幅補正 ===== */
body.is-smartphone {
	overflow-x: hidden;
	border-top: solid 4px #ED4C5C;
}
body.is-smartphone .ui-page {
	padding: 5px;
	padding-top: 0 !important;
}
body.is-smartphone .ui-page,
body.is-smartphone .ui-content {
	overflow-x: hidden;
	box-sizing: border-box;
}
body.is-smartphone .ui-content {
	padding: 4px 0 0;
}

/* 固定px幅をすべて100%に上書き */
body.is-smartphone div.wides,
body.is-smartphone div.liner,
body.is-smartphone div.wide1,
body.is-smartphone div.wide2,
body.is-smartphone div.wide3,
body.is-smartphone div.wide4,
body.is-smartphone div.wide5,
body.is-smartphone div.texts,
body.is-smartphone div.headline,
body.is-smartphone div.byline,
body.is-smartphone div.lists-telop,
body.is-smartphone div#tagged,
body.is-smartphone div.scroll-to-top {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}
body.is-smartphone div.wide1,
body.is-smartphone div.wide2,
body.is-smartphone div.wide3 {
	float: none !important;
	margin-right: 0 !important;
}

/* 画像が全幅になるように */
body.is-smartphone .ui-content img {
	max-width: 100%;
	height: auto;
}

/* ===== wides サービス項目: 縦積み1カラム ===== */
body.is-smartphone .wide > .image {
	float: none;
	width: 100%;
	margin: 0 0 6px 0;
}
body.is-smartphone .wide > .image img,
body.is-smartphone .wide > .image a img {
	max-width: 100% !important;
	height: auto;
	display: block;
}
body.is-smartphone .wide > .text {
	overflow: visible;
	font-size: 13px;
}

/* ===== ニュースリスト補正 ===== */
body.is-smartphone div.lists-telop dl {
	width: auto !important;
	margin: 0 !important;
}
body.is-smartphone div.lists-telop dt.date {
	font-size: 12px;
	width: auto !important;
	white-space: nowrap;
	padding-right: 10px;
}
body.is-smartphone div.lists-telop dl dd.title {
	overflow: hidden;
}
body.is-smartphone div.lists-telop dl dd.title a {
	font-size: 13px;
}

/* ===== ヘッドライン・バイライン補正 ===== */
body.is-smartphone div.headline h2 {
	font-size: 14px;
	letter-spacing: 1px;
}

/* ===== clearfix（jQuery Mobileと共存）===== */
body.is-smartphone .liner::after,
body.is-smartphone .wide::after,
body.is-smartphone .wides::after {
	content: "";
	display: table;
	clear: both;
}

/* top-h4 SP調整 */
body.is-smartphone h4.top-h4 {
	font-size: 18px;
	padding: 4px 0;
}
body.is-smartphone ul.top li {
	font-size: 12px;
	padding: 3px 0 0 13px;
}

/* ===== SP ヘッダー行: ロゴ左・MENUボタン右 ===== */
body.is-smartphone #dynamic-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background: #fff;
}
body.is-smartphone #dynamic-header #sp-slogo {
	width: 65%;
	order: 1;
}
body.is-smartphone #dynamic-header .panelbutton {
	width: 15%;
	order: 2;
	margin: 0 0 0 auto;
	flex-shrink: 0;
	align-self: flex-start;
}
body.is-smartphone #dynamic-header #slide-slide1 {
	order: 3;
	width: 100%;
	flex-basis: 100%;
}
@media screen and (max-width:480px) {
	body.is-smartphone #dynamic-header #slide-slide1 {
		margin-bottom: 10px;
	}
}
body.is-smartphone #slide-slide1 .bx-prev,
body.is-smartphone #slide-slide1 .bx-next {
	display: none;
}
/* bxSlider 矢印を #panel (z-index:1001) より下に配置 */
body.is-smartphone .bx-wrapper .bx-controls-direction a {
	z-index: 100;
}

/* ===== SP ロゴ ===== */
#sp-slogo img {
	width: 100%;
	height: auto;
	display: block;
	margin: 4px 0;
}
.panelbutton {
	margin: 0;
}
.panelbutton img {
	height: 36px;
	width: auto;
	display: block;
}

/* ===== スマートフォン レイアウト ===== */

/* ヘッダー */
#sp-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: #fff;
	border-bottom: 3px solid #f7931e;
	box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
#sp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
}
.sp-logo-link img {
	height: 36px;
	width: auto;
	display: block;
}
.sp-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
}
.sp-tel-link {
	font-size: 13px;
	font-weight: bold;
	color: #f7931e;
	text-decoration: none;
	white-space: nowrap;
}

/* ハンバーガーボタン */
#sp-menu-btn {
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 36px;
}
#sp-menu-btn span {
	display: block;
	height: 2px;
	background: #444;
	border-radius: 2px;
	transition: transform .25s, opacity .25s;
}
#sp-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#sp-menu-btn.is-open span:nth-child(2) { opacity: 0; }
#sp-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スライドダウンナビ */
#sp-nav {
	display: none;
	background: #333;
}
#sp-nav.is-open {
	display: block;
}
#sp-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#sp-nav ul li {
	border-bottom: 1px solid #444;
}
#sp-nav ul li a {
	display: block;
	padding: 12px 16px;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}
#sp-nav ul li a:hover {
	background: #f7931e;
}

/* コンテンツエリア */
#sp-content-wrap {
	padding-top: 58px; /* ヘッダー固定分 */
	padding-bottom: 10px;
	min-height: calc(100vh - 58px);
}

/* WP管理バー表示時:
   .ui-page は position:absolute; top:0 でビューポート基準のため
   html の margin-top の影響を受けない。
   管理バー分だけ .ui-page の top をずらして解決する。 */
body.is-smartphone.admin-bar #sp-header {
	top: 32px;
}
body.is-smartphone.admin-bar .ui-page {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.is-smartphone.admin-bar #sp-header {
		top: 46px;
	}
	body.is-smartphone.admin-bar .ui-page {
		top: 46px;
	}
}

/* フッター */
#sp-footer {
	padding: 8px 12px;
	text-align: center;
}
body.is-smartphone .ui-footer.ui-bar-inherit {
	background: #fff;
	border: none;
}
.sp-footer-tel {
	margin-bottom: 12px;
}
.sp-footer-nav ul {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 10px;
}
.sp-footer-nav ul li a {
	color: #ccc;
	font-size: 12px;
	text-decoration: none;
}
.sp-footer-nav ul li a:hover {
	color: #fff;
}
.sp-footer-pagetop {
	margin-bottom: 8px;
}
.sp-footer-pagetop a {
	color: #f7931e;
	font-size: 13px;
	text-decoration: none;
}
#sp-footer .copyright {
	font-size: 11px;
	color: #999;
	margin: 0;
}

/* ===== スマートフォン サービス一覧 ===== */
.sp-service-group {
	margin-bottom: 15px;
}
.sp-service-group h3 {
	margin: 10px 0 8px;
}
.sp-service-group h3 img {
	max-width: 100%;
	height: auto;
}
.sp-service-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border-top: 1px solid #e5e5e5;
	padding: 10px 0;
}
.sp-service-img {
	flex-shrink: 0;
	width: 90px;
}
.sp-service-img img {
	width: 90px;
	height: auto;
	display: block;
}
.sp-service-text {
	flex: 1;
}
.sp-service-text h4 {
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 5px;
	line-height: 1.4;
}
.sp-service-text h4 a {
	color: #f7931e;
}
.sp-service-text h4 a.blue {
	color: #57adc1;
}
.sp-service-text ul.top {
	margin: 4px 0 0;
	font-size: 12px;
}
.sp-service-text ul.top li {
	padding: 3px 0 0 13px;
	background-position: 3px 9px;
}

/* ===== ブロックエディタ 画像・カラムブロック ===== */
.wp-block-image,
.wp-block-columns {
	margin-bottom: 15px;
}

/* ===== #main 内 dl ===== */
/* #main dl {
	margin-bottom: 15px;
} */

/* ===== コンテンツ本文 p タグ ===== */
.entry-content p {
	color: #3A3A3A;
	font-size: 18px;
}

/* ===== ブロックエディタ 段落ブロック ===== */
.wp-block-paragraph {
	margin-bottom: 1em;
}
@media screen and (max-width: 480px) {
	.wp-block-paragraph {
		font-size: 16px;
	}
}

/* ===== ブロックエディタ リスト ===== */
ol.wp-block-list {
	list-style: decimal;
	padding-left: 1.5em;
}
ul.wp-block-list {
	list-style: disc;
	padding-left: 1.5em;
}
ul.wp-block-list.square-list { list-style: square; }
ul.wp-block-list.circle-list { list-style: circle; }
ol.wp-block-list li,
ul.wp-block-list li {
	margin-bottom: 10px;
}

/* ===== ページカラークラス ===== */
.text-green { color: #009900; }
.text-gold  { color: #cc9933; }

/* ===== 連絡先ボックス ===== */
.contact-box {
	border: 2px solid #f48989;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
}
.contact-title {
	color: #f48989;
	font-size: 1.2em;
	margin-bottom: 8px;
}

/* ===== 沿革テーブル（枠線なし・年号右揃え）===== */
.history-table table {
	border-collapse: collapse;
	width: 100%;
	border: none;
}
.history-table table td {
	padding: 10px;
	vertical-align: top;
	border: none;
}
.history-table table td:first-child {
	width: 80px;
	text-align: right;
	white-space: nowrap;
}
.history-table table td:nth-child(2) {
	width: 72px;
	text-align: right;
	white-space: nowrap;
}

/* ===== 事業所説明書一覧（doc-list: 箇条書きなし）===== */
ul.wp-block-list.doc-list {
	list-style: none;
	padding-left: 0;
}
ul.wp-block-list.doc-list li {
	margin-bottom: 6px;
}

/* ===== .access-table 内テーブル（div.table dl と同スタイル）===== */
figure.access-table table {
	border-collapse: collapse;
	width: 100%;
	letter-spacing: 1px;
	line-height: 1.2;
}
figure.access-table table th {
	color: #F48989;
	letter-spacing: 5px;
	font-weight: bold;
	text-align: center;
	vertical-align: middle;
	width: 30%;
	padding: 5px;
	border: 1px solid #F48989;
}
figure.access-table table td {
	color: #3a3a3a;
	vertical-align: middle;
	padding: 10px;
	border: 1px solid #F48989;
	overflow: hidden;
}

/* ===== .schedule-table 1日の流れテーブル ===== */
figure.schedule-table table {
	width: 100%;
	border-collapse: collapse;
}
figure.schedule-table table th,
figure.schedule-table table td {
	padding: 5px 0;
	border: none;
	border-bottom: 1px solid #ddd;
}
/* 2行目以降：文字色・行間 */
figure.schedule-table table tbody tr + tr th,
figure.schedule-table table tbody tr + tr td {
	line-height: 1.75;
	color: #525252;
}

/* ===== .fee-table 料金表テーブル ===== */
figure.fee-table table {
	border-collapse: collapse;
	width: 100%;
}
figure.fee-table table th,
figure.fee-table table td {
	border: 1px solid #f48989;
	padding: 5px;
	text-align: center;
	vertical-align: middle;
}
figure.fee-table table thead {
	border-bottom: 1px solid #f48989;
}
figure.fee-table table tfoot {
	border-top: 1px solid #f48989;
}

/* ===== SP：#page-navigation ページネーション ===== */
/* main.css の position:absolute を flex レイアウトで上書き */
body.is-smartphone #page-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 6px;
	margin: 15px auto;
}
body.is-smartphone #page-navigation div.navi {
	flex: 0 0 100%;
	order: 1;
	width: auto;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 6px;
}
body.is-smartphone #page-navigation div.prev {
	flex: 1;
	order: 2;
	position: static;
	text-align: left;
}
body.is-smartphone #page-navigation div.next {
	flex: 1;
	order: 3;
	position: static;
	text-align: right;
}
body.is-smartphone #page-navigation div.prev a,
body.is-smartphone #page-navigation div.next a {
	position: static;
	width: auto;
	top: auto;
	left: auto;
	right: auto;
}

/* ===== モバイル：カラム縦積み時の gap リセット ===== */
/* global-styles-inline-css の :where(.wp-block-columns.is-layout-flex){gap:2em} を上書き */
/* :where() は特異度0のため、通常セレクター（特異度0,2,0）で優先される */
@media (max-width: 781px) {
	.wp-block-columns.is-layout-flex:not(.is-not-stacked-on-mobile) {
		gap: 0;
	}
}

/* SP下部のPC表示変更のボタンは非表示 */
.ui-controlgroup {
	display: none;
}

@media screen and (max-width:781px) {
.order-1 {
	order: 1;
}
.order-2 {
	order: 2;
}
.order-3 {
	order: 3;
}
.order-4 {
	order: 4;
}
.order-5 {
	order: 5;
}
}
/* 利用料金について */
.ryokin {
  border: 1px solid #ccc;
  border-collapse: collapse;
  border-spacing: 0;
  width: 98%;
  margin-bottom: 20px;
}
.ryokin th.thside { width: 18em; }
.ryokin th {
  padding: 5px;
  border: #ccc solid;
  border-width: 0 0 1px 1px;
  background: #F5F5F5;
  font-weight: normal;
  line-height: 120%;
  text-align: center;
}
.ryokin td.cost { text-align: right; }
.ryokin td {
  padding: 5px 10px;
  border: 1px #ccc solid;
  border-width: 0 0 1px 1px;
  text-align: center;
}
.ryokin.ryokin-new {
	width: 100% !important;
	table-layout: fixed; /* これを追加 */
}
.ryokin.ryokin-new tr td {
	text-align: right;
	vertical-align: middle;
  border: 1px solid #ccc;
}
.ryokin.ryokin-new tr td[colspan] {
	text-align: center;
}
.ryokin-new  tr:nth-of-type(1) td,
.ryokin-new  td:nth-of-type(1),
.ryokin-new  tr:nth-of-type(5) td:nth-of-type(2) {
	background: #F5F5F5;
	text-align: center !important;
}
@media screen and (max-width:781px) {
.ryokin.ryokin-new tr td {
	padding: 5px;
	font-size: 0.8em;
}
.ryokin-new  td:nth-of-type(1) {
	width: 15% !important;
}
}
/* パターン */

/*ページ内リンクパターン*/
.page-link {
	border: 1px solid #ccc;
	margin: 50px 0;
	padding: 20px;
}
.page-link .wp-block-button {
	flex: 1;
}
.page-link .wp-block-button a {
	border: 3px solid #99c454;
	background: #fff;
	color: #3b3b3b;
	border-radius: 10px;
	font-size: 16px;
	position: relative;
}
/*----- くの字の矢印 */
.page-link .wp-block-button a::before {
	position: absolute;
    content: "";
    display: block;
    width: 15px;
    height: 15px;
	background: #f784b3;
	border-radius: 50%;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}
.page-link .wp-block-button a::after {
	position: absolute;
    content: "";
    display: block;
    width: 3px;
    height: 3px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(135deg);
    top: calc( 50% - 3px );
    left: 15px;
}

/* 左向き */
.arrow.-left::before{
    transform: rotate(-135deg);
}
/* 右向き */
.arrow.-right::before{
    transform: rotate(45deg);
}
/* 上向き */
.arrow.-top::before{
    transform: rotate(-45deg);
}
/* 下向き */
.arrow.-bottom::before{
    transform: rotate(135deg);
}


/*テーブル*/
.wp-singular figure.item-table-left table,
.wp-singular figure.item-table-top table,
.wp-singular figure.item-table-left-top table {
	margin-bottom: 40px;
}
.wp-singular figure:not(.history-table, .schedule-table) table tr td {
  border: 1px solid #F48989;
}
.wp-singular figure.item-table-left table tr td:first-child,
.wp-singular figure.item-table-top table tr:first-child td,
.wp-singular figure.item-table-left-top table tr td:first-child,
.wp-singular figure.item-table-left-top table tr:first-child td,
.wp-singular figure.item-table-left-top table tr td:first-child,
.wp-singular figure.item-table-left-top table tr:first-child td,
.wp-singular figure.item-table-left-top table tr td:first-child,
.wp-singular figure.item-table-left-top table tr:first-child td {
	color: #F48989;
	background: #fff0f0;
	text-align: center;
	font-weight: bold;
}

.page-content .item-column1
.page-content .item-column2
.page-content .item-column3
.page-content .item-column4
.page-content .item-column5
.page-content .item-img-text
.page-content .item-text-img {}
/*
.page-content .wp-block-group.history div .history-inner div div.wp-block-group figure.wp-block-image img {
	width: 200px !important;
}*/
.wp-singular .history .history-inner img {
	width: 200px;
}
.wp-singular .history .history-inner .is-layout-flex {
	align-items: start;
}
.wp-singular .history .history-inner {
	margin-bottom: 10px;
}
.wp-singular .history .history-inner p {
	margin-bottom: 0;
}
.wp-singular .history {
	border-left: 15px solid #f7f4e8;
	padding: 15px;
}