/*
Theme Name: Shin Clinic
Theme URI: https://shinclinic-plasticsurgery.com
Description: シンクリニック専用のテーマ子テーマ。医療機関向けにカスタマイズされたデザインです。
Author: Shin Clinic
Author URI: https://shinclinic-plasticsurgery.com
Template: cocoon-master
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Shin-clinic
*/

/*
===========================================
  Googleフォントの読み込み
===========================================
*/
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Noto+Serif+JP:wght@400;500;600;700&family=BIZ+UDGothic&display=swap');
/*
===========================================
  シンクリニック カスタムスタイル
===========================================
*/

/* カラーパレット */
:root {
  --clinic-primary: #9EC4C6;
  --clinic-secondary: rgb(158, 196, 198, 0.22);
  --clinic-accent: #9EC4C6;
  --clinic-success: #5cb85c;
  --clinic-text: #3E3737;
  --clinic-text-light: #3E3737;
  --clinic-bg: #F8F2EC;
  --clinic-bg-light: #f8f9fa;
  --clinic-bg-accent: rgb(214, 193, 176, 0.17);
  --clinic-gray-30: rgba(62, 55, 55, 0.3);
  --clinic-border: #9EC4C6;
  --clinic-h3-border: #D6C1B0;
  --clinic-white: #ffffff;

  /* フォント設定 */
  --font-english: 'Marcellus', serif;
  --font-japanese: 'Noto Serif JP', serif;
  --font-gothic: 'BIZ UDGothic';
}

/*サイズ設定*/
@media screen and (min-width: 576px) {
  :root {
    --clinic-max-width: 540px
  }
}

@media screen and (min-width: 768px) {
  :root {
    --clinic-max-width: 720px
  }
}

@media screen and (min-width: 992px) {
  :root {
    --clinic-max-width: 960px
  }
}

@media screen and (min-width: 1200px) {
  :root {
    --clinic-max-width: 1120px
  }
}

/* ========== 全体的なスタイル ========== */
.displaynone {
  display: none;
}

.footer-meta, .date-tags {
  display: none !important;
}

body {
  font-family: var(--font-japanese), var(--font-english), serif;
  color: var(--clinic-text);
  line-height: 1.8;
  background-color: var(--clinic-bg);
}

article,
.main-section {
  max-width: var(--clinic-max-width);
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.main-section {
  margin: 150px auto;
}

article.article.page.type-page.status-publish.hentry {
  margin-bottom: 0;
}

article.article.page.type-page.status-publish.hentry .entry-content {
  margin-top: 0;
  margin-bottom: 0;
}

body.archive.category {
  margin-top: 150px;
  max-width: var(--clinic-max-width);
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

body.blog {
  margin-top: 150px;
  max-width: var(--clinic-max-width);
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

a:hover {
  color: translate;
}

.clinic-max-width {
  max-width: var(--clinic-max-width);
}

@media screen and (max-width: 768px) {
  .clinic-max-width {
    width: 85%;
  }
}

/* 英数字に Marcellus を適用 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div {
  font-family: var(--font-japanese), var(--font-english), serif;
  -webkit-font-smoothing: antialiased;
}

article p {
  font-size: 0.8em;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: 0.1em;
  color: var(--clinic-text);
}

.article h4 {
  font-size: 1.2em;
  font-weight: 400;
  position: relative;
  padding-left: 25px;
  border: none;
  line-height: 1.5;
}

.article h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: var(--clinic-primary);
  border-radius: 50%;
}

.article ul li,
.article ol li {
  margin: 0;
  font-size: 0.8em;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: 0.1em;
  color: var(--clinic-text);
}

p.fontsize-large {
  font-size: 30px;
}

@media (max-width: 768px) {
  article p {
    font-size: 0.8em;
    line-height: 24px;
  }

  body:not(.home) article.article.page.type-page.status-publish.hentry .entry-content {
    padding: 0 30px;
  }
}

/* 英字部分に特化したスタイル */
.menu-title,
.english-text {
  font-family: var(--font-english), serif;
  letter-spacing: 0.05em;
}

table th,
table td {
  font-size: 0.9em;
  font-weight: 400;
}

table th {
  letter-spacing: 0.2em;
}

table td {
  font-size: 0.8em;
}

/* ========== ヘッダーカスタマイズ ========== */
.header {
  background-color: var(--clinic-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-name-text {
  color: var(--clinic-primary);
  font-weight: 700;
  font-size: 28px;
  font-family: var(--font-english), serif;
}

.tagline {
  color: var(--clinic-text-light);
  font-size: 14px;
  font-family: var(--font-japanese), serif;
}

/* ========== ナビゲーション ========== */
.navi-in a {
  color: var(--clinic-text);
  transition: color 0.3s ease;
}

.navi-in a:hover {
  color: var(--clinic-primary);
}

/* ========== メインビジュアル・トップページ ========== */
.main {
  background-color: var(--clinic-bg);
}

.eye-catch-wrap {
  display: flex;
  overflow: hidden;
  padding: 8vh 0 0 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home .eye-catch-wrap {
  display: none;
}

@media (max-width: 768px) {
  .eye-catch-wrap figure img {
    max-width: 160%;
  }
}


/* セクション見出し */
.entry-content h2,
.article h2 {
  color: var(--clinic-text);
  border-left: 5px solid var(--clinic-primary);
  padding-left: 4%;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 50px;
  margin-bottom: 50px;
  background-color: transparent;
  letter-spacing: 4px;
  font-size: 1.8em;
  font-weight: 500;
  font-family: var(--font-japanese), serif;
}

.entry-content h3,
.article h3 {
  color: var(--clinic-text);
  border-bottom: 1px dashed var(--clinic-h3-border);
  border-left: none;
  border-top: none;
  border-right: none;
  padding-bottom: 10px;
  padding-bottom: 8px;
  padding-left: 0;
  margin-top: 80px;
  margin-bottom: 30px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  font-size: 1.2em;
  font-weight: 400;
  font-family: var(--font-japanese), serif;
  background: transparent;
}

/* ========== ボタンスタイル ========== */
.btn,
.button,
a.btn-wrap {
  background-color: var(--clinic-primary);
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-japanese), serif;
}

.btn:hover,
.button:hover,
a.btn-wrap:hover {
  background-color: var(--clinic-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.3);
}

/* ========== カード・ボックススタイル ========== */
.entry-card-wrap,
.widget {
  border: 1px solid var(--clinic-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.entry-card-wrap:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ========== 診療科目・サービス用ボックス ========== */
.clinic-service-box {
  background-color: var(--clinic-bg-light);
  border-left: 4px solid var(--clinic-primary);
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.clinic-service-box h4 {
  color: var(--clinic-primary);
  margin-top: 0;
  font-size: 20px;
  font-family: var(--font-japanese), serif;
}

/* ========== アクセス・地図エリア ========== */
.clinic-access {
  background-color: var(--clinic-bg-light);
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
}

.clinic-access h3 {
  border-bottom: 3px solid var(--clinic-primary);
  color: var(--clinic-primary);
  font-family: var(--font-japanese), serif;
}

/* ========== 診療時間表 ========== */
table.clinic-hours {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: var(--clinic-bg);
  font-family: var(--font-japanese), serif;
}

table.clinic-hours th {
  background-color: var(--clinic-primary);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 600;
}

table.clinic-hours td {
  border: 1px solid var(--clinic-border);
  padding: 10px;
  text-align: center;
}

table.clinic-hours tr:nth-child(even) {
  background-color: var(--clinic-bg-light);
}

/* ========== お知らせ・新着情報 ========== */
.clinic-news {
  background-color: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.clinic-news h4 {
  color: #f57c00;
  margin-top: 0;
  font-family: var(--font-japanese), serif;
}

/* ========== 予約ボタン（CTA） ========== */
.clinic-cta {
  background: linear-gradient(135deg, var(--clinic-primary) 0%, var(--clinic-secondary) 100%);
  color: white;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  margin: 40px 0;
  box-shadow: 0 4px 16px rgba(44, 95, 141, 0.2);
}

.clinic-cta h3 {
  color: white;
  border: none;
  margin-top: 0;
  font-family: var(--font-japanese), serif;
}

.clinic-cta .btn {
  background-color: white;
  color: var(--clinic-primary);
  font-size: 18px;
  padding: 15px 40px;
}

.clinic-cta .btn:hover {
  background-color: var(--clinic-bg-light);
}

/* ========== フッター ========== */
.footer {
  background-color: var(--clinic-primary);
  color: white;
  padding: 40px 20px;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  color: var(--clinic-accent);
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 768px) {
  .site-name-text {
    font-size: 22px;
  }

  .entry-content h2,
  .article h2 {
    font-size: 22px;
  }

  .entry-content h3,
  .article h3 {
    font-size: 19px;
  }

  .clinic-cta {
    padding: 20px;
  }

  table.clinic-hours {
    font-size: 14px;
  }

  table.clinic-hours th,
  table.clinic-hours td {
    padding: 8px 4px;
  }
}

/* ========== アクセシビリティ ========== */
a:focus,
button:focus {
  /*outline: 2px solid var(--clinic-accent);*/
  outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
  :root {
    --clinic-primary: #1a4d7a;
    --clinic-text: #000000;
  }
}

/* ========== フッター ========== */
.site-footer {
  background-color: var(--clinic-text);
  color: #ffffff;
  padding: 80px 0 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* PC表示 */
.site-footer--pc {
  display: block;
}

.site-footer--sp {
  display: none;
}

.site-footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 100px 60px;
  gap: 50px;
}

/* ロゴ */
.site-footer__logo {
  flex-shrink: 0;
}

.site-footer__logo img {
  width: 220px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* フッターナビゲーション */
.site-footer__nav {
  flex: 1;
  max-width: 800px;
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 8vh;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 親メニュー */
.footer-menu>li {
  flex: 0 0 auto;
  min-width: 0;
}

.footer-menu>li>a {
  font-family: var(--font-japanese), serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.20em;
  white-space: nowrap;
}

.footer-menu>li>a:hover {
  opacity: 0.7;
}

/* 子メニュー */
.footer-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu .sub-menu li {
  margin: 0;
}

.footer-menu .sub-menu li a {
  font-family: var(--font-japanese), serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  letter-spacing: 0.20em;
}

.footer-menu .sub-menu li a:hover {
  color: #ffffff;
}

/* コピーライト */
.site-footer__copyright {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-japanese), serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__copyright p {
  margin: 0;
}

/* レスポンシブ対応（タブレット） */
@media (max-width: 1024px) {
  .site-footer__content {
    gap: 60px;
    padding: 0 30px 50px;
  }

  .site-footer__logo img {
    width: 180px;
  }

  .footer-menu {
    gap: 30px;
  }

  .footer-menu>li>a {
    font-size: 15px;
  }

  .footer-menu .sub-menu li a {
    font-size: 12px;
  }
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 0;
  }

  .site-footer--pc {
    display: none;
  }

  .site-footer--sp {
    display: block;
    padding: 0 40px;
  }

  /* SPロゴ */
  .site-footer__logo-sp {
    text-align: left;
    margin-bottom: 40px;
  }

  .site-footer__logo-sp img {
    width: 237px;
    height: auto;
    filter: brightness(0) invert(1);
  }

  /* SPナビゲーション */
  .sp-footer-nav {
    margin-bottom: 40px;
  }

  .sp-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* SP親メニュー */
  .sp-footer-menu>li {
    padding-bottom: 10px;
  }

  .sp-footer-menu>li:last-child {
    border-bottom: none;
  }

  .sp-footer-menu>li>a {
    font-family: var(--font-japanese), serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
  }

  /* SP子メニュー */
  .sp-footer-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sp-footer-menu .sub-menu li a {
    font-family: var(--font-japanese), serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
  }

  /* SPコピーライト */
  .site-footer--sp .site-footer__copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
}

/* ========================================
   追従CTAボタン(シンプル版)
   ======================================== */

/* PC版 */
.fixed-cta-pc {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
}

.fixed-cta-pc a {
  display: block;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.fixed-cta-pc a:hover {
  transform: translateY(-10px);
}

.fixed-cta-pc img {
  width: auto;
  height: 70px;
  display: block;
}

/* SP版 */
.fixed-cta-sp {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 998;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  gap: 10px;
}

.fixed-cta-sp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: white;
  height: 70px;
}

.fixed-cta-sp-web {
  background: var(--clinic-accent);
}

.fixed-cta-sp-line {
  background: var(--clinic-h3-border);
}

.fixed-cta-sp-icon {
  font-size: 20px;
  line-height: 1;
}

/* レスポンシブ */
@media (max-width: 992px) {
  .fixed-cta-pc {
    display: none;
  }

  .fixed-cta-sp {
    display: flex;
  }
}

@media (max-width: 768px) {
  .fixed-cta-sp {
    padding: 0;
    gap: 0;
  }

  .fixed-cta-sp-btn {
    padding: 12px 15px;
    font-size: 13px;
  }
}

/* メニュー開いている時は非表示 */
body.menu-open .fixed-cta-pc,
body.menu-open .fixed-cta-sp {
  display: none;
}

/* ========================================
   flow-section 施術の流れ - 完全版
======================================== */

/* カウンターリセット */
.flow-section {
  counter-reset: flow-counter;
  padding: 60px 0;
}

/* 各フローアイテム */
.flow-child {
  position: relative;
  background-color: rgba(158, 196, 198, 0.08);
  border-radius: 12px;
  padding: 40px 30px !important;
  margin-bottom: 60px;
}

.flow-child:last-child {
  margin-bottom: 0;
}

/* h3見出し */
.flow-child h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  counter-increment: flow-counter;
  border: none;
}

/* 水色の丸数字 */
.flow-child h3::before {
  content: counter(flow-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--clinic-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.8em;
  flex-shrink: 0;
  letter-spacing: 0;
}

/* テキスト */
.flow-child p {
  font-size: 0.95em;
  line-height: 1.8;
  color: var(--clinic-text-dark);
  margin-bottom: 15px;
}

.flow-child p:last-child {
  margin-bottom: 0;
}

/* リスト */
.flow-child ul {
  margin-top: 20px;
  padding-left: 1.5em;
}

.flow-child ul li {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ▼矢印 */
.flow-child:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid var(--clinic-primary);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .flow-section {
    padding: 40px 0;
  }

  .flow-child {
    padding: 30px 20px !important;
    margin-bottom: 50px;
  }

  .flow-child h3 {
    font-size: 1.1em;
    gap: 12px;
  }

  .flow-child h3::before {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }

  .flow-child p {
    font-size: 0.9em;
  }

  .flow-child:not(:last-child)::after {
    bottom: -22px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--clinic-primary);
  }
}

/* ========================================
   目次のカスタムデザイン(右端に下矢印)
======================================== */

/* 目次全体 */
#toc {
  border: none;
  padding: 40px 30px;
  margin: 60px auto;
}

/* 目次タイトル */
#toc .toc-title {
  display: none;
}

/* 目次コンテンツ */
#toc .toc-content {
  padding: 0;
}

/* リストのリセット */
#toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 各目次アイテム */
#toc .toc-list>li {
  position: relative;
  border-bottom: 0.5px solid var(--clinic-text);
  padding: 20px 65px 20px 0;
  margin: 0;
  transition: all 0.3s ease;
}

/* ホバー時 */
#toc .toc-list>li:hover {
  border-color: var(--clinic-primary);
  transform: translateY(-2px);
}

/* リンク */
#toc .toc-list>li>a {
  display: block;
  text-decoration: none;
  font-size: 1em;
  line-height: 1.6;
}

/* リンクホバー時 */
#toc .toc-list>li:hover>a {
  color: var(--clinic-primary);
}

/* 右端の下矢印アイコン(::after) */
#toc .toc-list>li::after {
  content: "↓";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--clinic-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1em;
  line-height: 1;
  transition: all 0.3s ease;
}

/* ホバー時の下矢印アニメーション */
#toc .toc-list>li:hover::after {
  transform: translateY(-45%);
  background-color: #7AB8BD;
}

/* ネストされたリスト(子要素)を非表示 */
#toc .toc-list>li>ol,
#toc .toc-list>li>ul {
  display: none;
}

/* 目次の最後のアクセスを非表示 */
.toc-list>li:last-child {
  display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  #toc .toc-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  #toc {
    padding: 30px 0px;
    width: 100%;
  }

  #toc .toc-title {
    font-size: 1.3em;
    margin-bottom: 25px;
  }

  #toc .toc-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #toc .toc-list>li {
    padding: 18px 60px 18px 18px;
  }

  #toc .toc-list>li::after {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    right: 12px;
  }

  #toc .toc-list>li>a {
    font-size: 1em;
  }
}

/* ========================================
   PC/SP別アイキャッチ画像の切り替え
   ======================================== */

.responsive-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

/* PC版画像の表示制御 */
.responsive-thumbnail-wrapper .thumbnail-pc {
  display: block;
  width: 100%;
  height: auto;
}

/* SP版画像の表示制御 */
.responsive-thumbnail-wrapper .thumbnail-sp {
  display: none;
  width: 100%;
  height: auto;
}

/* スマホ表示時の切り替え */
@media (max-width: 768px) {
  .responsive-thumbnail-wrapper .thumbnail-pc {
    display: none;
  }

  .responsive-thumbnail-wrapper .thumbnail-sp {
    display: block;
  }
}