/*
Theme Name:TW_ofzo02の子テーマ
Theme URI:
Description:さまざまなテーマの子テーマを作るためのひながたです。
Author:Naoki Nishizawa
Author URI:http://www.nishi2002.com/
Template:ofzo02
Version:0.1.0
*/
/* ===== 右側固定バナー（PC用）===== */
.side-fixed-banner {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    background-color: transparent !important;
}
.side-fixed-banner a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: auto !important;
    padding: 16px 8px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    color: #fff !important;
    line-height: 1.6 !important;
    border-radius: 12px 0 0 12px !important;
    border: 2px dashed rgba(255,255,255,0.7) !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
}
/* サイトのキーグリーンに統一（予約=既存CTAと同系色） */
.side-fixed-banner .btn-reserve   { background-color: #D6336C !important; }
/* Instagram公式に近い単色マゼンタピンク */
.side-fixed-banner .btn-instagram { background-color: #7BAA1C !important; }
.side-fixed-banner .btn-top {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    writing-mode: horizontal-tb !important;
    font-size: 12px !important;
    padding: 0 !important;
    align-self: center !important;
    margin-right: 4px !important;
    /* ロゴのオレンジアクセントカラー */
    background-color: #F6AB00 !important;
    border: 2px dashed rgba(255,255,255,0.7) !important;
}
/* ===== スマホ用 ===== */
@media (max-width: 768px) {
    .side-fixed-banner {
        top: auto !important;
        bottom: 60px !important;   /* フッターバーの高さ分上 */
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
        flex-direction: row !important;  /* 横並び */
        gap: 0 !important;
        width: 100vw !important;
        min-width: 100vw !important;
    }
    .side-fixed-banner a {
        flex: 1 !important;
        width: auto !important;
        height: 48px !important;
        padding: 0 4px !important;
        font-size: 12px !important;
        border-radius: 0 !important;
        writing-mode: horizontal-tb !important;
        border: none !important;
        border-right: 1px solid rgba(255,255,255,0.4) !important;
        line-height: 48px !important;
        align-self: auto !important;
    }
    .side-fixed-banner .btn-top {
        display: none !important;
    }
    body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* TW_20260908：タイルブロックにマージン挿入===== */
/* https://claude.ai/chat/7ce0e264-d8c8-4837-a2e2-67f53d1016e9 */
.wrap-sqblock {
    display: flex;
    gap: 15px;
}

.sqblock figure p {
    font-size: 18px !important; /* お好みのサイズに調整 */
}

/* N番目のタイル(sqblock--N)だけ文字サイズと中央揃えを変更 */
.sqblock--4 figure p,
.sqblock--5 figure p {
    font-size: 16px !important;
    text-align: center !important;
}

/* ①投稿タイトル「本日の診療について」 */
.list-widget-post__title {
    font-size: 20px !important;
}

/* ②本文「本日は通常診療しておりますが…」 */
.list-widget-post__data p {
    font-size: 16px !important;
}

/* ③の日付・カテゴリをさらに個別に分けたい場合 */
.entry-meta .entry-date {
    font-size: 13px !important;
}
.entry-meta .entry-cat {
    font-size: 13px !important;
}

/* 投稿一覧全体を角丸+薄い緑の枠で囲む */
.list-widget-post {
    border: 1px solid #a8d5ba; /* 薄い緑 */
    border-radius: 12px;
    padding: 20px;
    list-style: none;
}

/* 2件目以降の投稿の上に、薄いグレーの区切り線を入れる */
.list-widget-post__item + .list-widget-post__item {
    border-top: 1px solid #e0e0e0; /* 薄いグレー */
    margin-top: 15px;
    padding-top: 15px;
}

/* PC・タブレット(デフォルト) */
.front-slider .swiper-slide,
.front-slider .slide-img,
.front-slider .slider__img {
    height: 300px !important; /* 600pxの半分 */
    object-fit: cover;
}

/* スマホ幅(768px以下を想定) */
@media (max-width: 768px) {
    .front-slider .swiper-slide,
    .front-slider .slide-img,
    .front-slider .slider__img {
        height: 159px !important; /* 318pxの半分 */
    }
}

/* ===== 予約バナー（縦並び）===== */
/* TW_20260917 https://claude.ai/chat/b29264d8-39c8-42e9-8809-38c2c82d3c3d */
.yb-list {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

.yb-card {
  background: #fff;
  border: 2px solid var(--yb-main);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

/* テーマカラー */
.yb-1 { --yb-main: #EF8200; --yb-light: #FFF4E6; }
.yb-2 { --yb-main: #0096DF; --yb-light: #EAF6FD; }
.yb-3 { --yb-main: #3FA648; --yb-light: #EDF7ED; }
.yb-4 { --yb-main: #7A5EC0; --yb-light: #F3EFFB; }

/* ヘッダー部 */
.yb-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--yb-light);
  border-bottom: 2px solid var(--yb-main);
}

.yb-num {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yb-main);
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.yb-title {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
  color: var(--yb-main);
}

.yb-sub {
  margin: 4px 0 0;
  font-size: .95em;
  color: #555;
}

/* 本文 2カラム */
.yb-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  padding: 22px 24px 24px;
}

.yb-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 16px;
  background: var(--yb-light);
  border-radius: 20px;
  font-weight: bold;
  color: #444;
  font-size: .95em;
}

.yb-lead { margin: 0 0 14px; }

/* チェックリスト */
.yb-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 4px 20px;
}

.yb-check li {
  position: relative;
  padding: 6px 0 6px 28px;
}

.yb-check li:before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--yb-main);
  font-weight: bold;
}

/* 注意ボックス */
.yb-info,
.yb-warn {
  position: relative;
  margin: 12px 0 0;
  padding: 12px 14px 12px 42px;
  border-radius: 8px;
  font-size: .92em;
}

.yb-info { background: var(--yb-light); border-left: 4px solid var(--yb-main); }
.yb-warn { background: #FDEDEF; border-left: 4px solid #E0505F; color: #C0392B; }

.yb-info:before,
.yb-warn:before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: .85em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.yb-info:before { background: var(--yb-main); }
.yb-warn:before { background: #E0505F; }

.yb-note {
  margin: 10px 0 0;
  font-size: .85em;
  color: #777;
}

/* ボタン */
.yb-action { text-align: center; }

.yb-btn {
  display: block;
  position: relative;
  padding: 18px 40px 18px 24px;
  background: var(--yb-main);
  color: #fff !important;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
  transition: opacity .2s, transform .2s;
}

.yb-btn:after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.yb-btn:hover {
  opacity: .85;
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}

/* レスポンシブ */
@media screen and (max-width: 767px) {
  .yb-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px 20px;
  }
  .yb-head { padding: 14px 16px; gap: 12px; }
  .yb-num { width: 38px; height: 38px; font-size: 1.25em; }
  .yb-title { font-size: 1.25em; }
  .yb-check { grid-template-columns: 1fr; }
  .yb-btn { padding: 16px 36px 16px 20px; font-size: 1em; }
}

/* ===== ご予約にあたっての注意事項 ===== */
.yb-notice {
  max-width: 980px;
  margin: 40px auto 0;
  background: #fff;
  border: 2px solid #0096DF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  font-family: 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

.yb-notice-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: #EAF6FD;
  border-bottom: 2px dotted #0096DF;
}

.yb-notice-head:before {
  content: "!";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #EF8200;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

.yb-notice .yb-notice-title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 1.4em;
  font-weight: bold;
  color: #1A5C8F;
  line-height: 1.4;
}

.yb-notice-row {
  display: flex !important;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 18px 24px;
  border-bottom: 1px solid #CFE7F5;
  box-sizing: border-box;
}

.yb-notice-row:last-child { border-bottom: none; }

.yb-notice-tag {
  flex: 0 0 110px;
  width: 110px;
  min-height: 56px;
  padding: 6px 8px;
  background: #EAF6FD;
  border-radius: 8px;
  color: #0096DF;
  font-weight: bold;
  font-size: .9em;
  text-align: center;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.yb-notice-body {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: block;
}

.yb-notice .yb-notice-body h4 {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 1.1em;
  font-weight: bold;
  color: #EF8200;
  line-height: 1.5;
}

.yb-notice .yb-notice-body p {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  font-size: .92em;
  color: #444;
}

.yb-notice-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.yb-notice-boxes span {
  position: relative;
  display: inline-block;
  padding: 8px 14px 8px 34px;
  border: 1px solid #0096DF;
  border-radius: 6px;
  background: #F6FBFE;
  font-size: .92em;
  white-space: nowrap;
}

.yb-notice-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.yb-notice-boxes a {
  position: relative;
  display: inline-block;
  padding: 8px 14px 8px 34px;
  border: 1px solid #0096DF;
  border-radius: 6px;
  background: #F6FBFE;
  font-size: .92em;
  color: #333 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s;
}

.yb-notice-boxes a:hover {
  background: #EAF6FD;
  box-shadow: 0 2px 6px rgba(0,150,223,.25);
}

.yb-notice-boxes a:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid #EF8200;
  border-radius: 3px;
}

/* ===== 前回の来院からの期間ページ ===== */
.yp-wrap {
  max-width: 980px;
  margin: 0 auto;
  font-family: 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

.yp-head {
  text-align: center;
  padding: 28px 24px;
  background: #EAF6FD;
  border-radius: 12px;
  margin-bottom: 28px;
}

.yp-wrap .yp-head-title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 1.6em;
  font-weight: bold;
  color: #1A5C8F;
  line-height: 1.4;
}

.yp-head-title span {
  display: block;
  font-size: .75em;
  font-weight: bold;
  color: #1A5C8F;
  margin-bottom: 4px;
}

.yp-head-bar {
  width: 120px;
  height: 4px;
  margin: 14px auto 0;
  background: #0096DF;
  border-radius: 2px;
}

.yp-list {
  display: flex !important;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.yp-card {
  display: block;
  width: 100%;
  background: #fff;
  border: 2px solid var(--yp-main);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  box-sizing: border-box;
}

.yp-1 { --yp-main: #3FA648; --yp-light: #EDF7ED; }
.yp-2 { --yp-main: #0096DF; --yp-light: #EAF6FD; }

/* ヘッダー部 */
.yp-card-head {
  display: flex !important;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 24px;
  background: var(--yp-light);
  border-bottom: 2px solid var(--yp-main);
  box-sizing: border-box;
}

.yp-num {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yp-main);
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.yp-card-head .yp-head-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: .95em;
  color: #444;
  white-space: nowrap;
}

.yp-head-text strong {
  display: block;
  font-size: 1.7em;
  font-weight: bold;
  color: var(--yp-main);
  line-height: 1.2;
}

.yp-head-text strong small {
  font-size: .55em;
  color: #444;
  font-weight: bold;
  margin-left: 6px;
}

/* 本文 2カラム */
.yp-card-body {
  display: flex !important;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 22px 24px 24px;
  box-sizing: border-box;
}

.yp-card-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.yp-card-action {
  flex: 0 0 320px;
  width: 320px;
}

.yp-card-main .yp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  padding: 5px 14px 5px 8px !important;
  background: var(--yp-main);
  color: #fff;
  border-radius: 20px;
  font-weight: bold;
  font-size: .9em;
}

.yp-label:before {
  content: "!";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--yp-main);
  font-weight: bold;
  font-size: .85em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.yp-card-main .yp-text {
  margin: 0 !important;
  padding: 14px 16px !important;
  background: var(--yp-light);
  border-left: 4px solid var(--yp-main);
  border-radius: 8px;
  font-size: .95em;
}

.yp-text strong {
  color: var(--yp-main);
  font-weight: bold;
}

/* ボタン */
.yp-btn {
  display: block;
  position: relative;
  padding: 18px 40px 18px 24px;
  background: var(--yp-main);
  color: #fff !important;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
  transition: opacity .2s, transform .2s;
}

.yp-btn:after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.yp-btn:hover {
  opacity: .85;
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}

/* レスポンシブ */
@media screen and (max-width: 767px) {
  .yp-head { padding: 20px 16px; }
  .yp-wrap .yp-head-title { font-size: 1.25em; }
  .yp-list { gap: 18px; }
  .yp-card-head { padding: 14px 16px; gap: 12px; }
  .yp-num { flex: 0 0 38px; width: 38px; height: 38px; font-size: 1.25em; }
  .yp-card-head .yp-head-text { white-space: normal; }
  .yp-head-text strong { font-size: 1.4em; }
  .yp-card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 16px 20px;
  }
  .yp-card-action { flex: 0 0 auto; width: 100%; }
  .yp-btn { padding: 16px 36px 16px 20px; font-size: 1em; }
}

/* 2026/10/06：医師紹介 */

.pr-center {
	max-width: 400px;
	margin: 0 auto;
	text-align: center;
}
.pr-center h3 {
	font-size: 20px;
	color: #333;
	margin: 0 0 15px;
	padding: 0 !important;
	border: none !important;
	text-align: center;
}
.pr-center h3::before,
.pr-center h3::after {
	display: none !important;
}
.pr-center .pr-btn {
	display: inline-block;
	width: 100%;
	max-width: 320px;
	box-sizing: border-box;
	background-color: #8bc34a;
	color: #fff !important;
	text-decoration: none !important;
	padding: 14px 20px;
	border-radius: 6px;
	font-size: 16px;
}
.pr-center .pr-btn::after {
	content: "›";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #fff;
	color: #8bc34a;
	margin-left: 10px;
	font-weight: bold;
	vertical-align: middle;
}
.pr-center .pr-image {
	margin-top: 20px;
}
.pr-center .pr-image img {
	width: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	margin: 0 auto;
}

/* 2026/10/06：医師の特徴など */

.feature-box {
	--fb-color: #2A9D8F;
	border: 2px solid var(--fb-color);
	border-radius: 16px;
	max-width: 900px;
	margin: 60px auto 20px;
	padding: 28px 30px 25px;
}
.feature-box--1 { --fb-color: #2A9D8F; }
.feature-box--2 { --fb-color: #457B9D; }
.feature-box--3 { --fb-color: #E76F51; }

.feature-box__title {
	display: flex;
	align-items: center;
	width: fit-content;
	max-width: calc(100% - 20px);
	margin: -51px 0 16px -10px;
	padding: 6px 24px 6px 6px;
	background-color: var(--fb-color);
	color: #fff;
	border-radius: 30px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.4;
}
.feature-box__number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	margin-right: 12px;
	background-color: #fff;
	color: var(--fb-color);
	border-radius: 50%;
	font-size: 16px;
	font-weight: bold;
	line-height: 1;
}
.feature-box__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
	color: #333;
}

@media (max-width: 640px) {
	.feature-box {
		padding: 24px 18px 20px;
	}
	.feature-box__title {
		font-size: 16px;
	}
}