/*
Theme Name: あしだこども診療所 Static Theme
Theme URI: https://example.com/
Author: Megumi Watanabe
Description: 静的サイトのデザインを保持しつつ、WordPress投稿とGutenbergに対応する専用テーマです。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ashida-clinic
*/

:root {
  --ashida-orange: #ef8f00;
  --ashida-orange-dark: #d97900;
  --ashida-cream: #fff8ec;
  --ashida-ink: #0f172a;
  --ashida-border: #f2ddb8;
  --ashida-copy: #3f4652;
  --ashida-mint: #5c9d91;
  --ashida-mint-soft: #eef7f4;
  --ashida-line-soft: #e7dfd3;
}

*, *::before, *::after { box-sizing: border-box; }
/* Elementor のアニメーション初期化に失敗しても、本文や画像を非表示のままにしない。 */
body .elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
body.ashida-wp-layout {
  margin: 0;
  color: var(--ashida-ink);
  background: #fff;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
}
.ashida-wp-container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.ashida-wp-header { border-bottom: 1px solid #f5c98f; background: #fff; }
.ashida-wp-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ashida-wp-logo img { display: block; width: min(330px, 55vw); height: auto; }
.ashida-wp-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.ashida-wp-nav a { color: #3c3f45; font-weight: 700; text-decoration: none; }
.ashida-wp-nav a:hover { color: var(--ashida-orange); }
.main-header-bar.ast-header-breadcrumb { display: none !important; }
.ashida-breadcrumb {
  width: 100%;
  margin: 0;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: #737980;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}
.ashida-breadcrumb__inner {
  display: flex;
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 12px 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}
.ashida-breadcrumb__home {
  flex: 0 0 auto;
  color: #687078;
  text-decoration: none;
  transition: color .2s ease;
}
.ashida-breadcrumb__home:hover,
.ashida-breadcrumb__home:focus-visible { color: var(--ashida-orange-dark); }
.ashida-breadcrumb__home:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ashida-breadcrumb__separator { flex: 0 0 auto; color: #a8adb2; }
.ashida-breadcrumb__current {
  min-width: 0;
  overflow: hidden;
  color: #737980;
  text-overflow: ellipsis;
}
.ashida-wp-main { min-height: 55vh; padding: 64px 0 96px; }
.ashida-wp-article { width: min(840px, 100%); margin-inline: auto; }
.ashida-wp-article__header { margin-bottom: 42px; padding-bottom: 22px; border-bottom: 4px solid #fff0bf; }
.ashida-wp-article__title { margin: 0 0 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1.35; }
.ashida-wp-article__meta { color: #667085; font-size: 14px; }
.ashida-wp-content { font-size: 17px; }
.ashida-wp-content > * { max-width: 840px; margin-left: auto; margin-right: auto; }
.ashida-wp-content > .alignwide { max-width: 1120px; }
.ashida-wp-content > .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.ashida-wp-content img { max-width: 100%; height: auto; }
.ashida-wp-content a { color: var(--ashida-orange-dark); }
.ashida-wp-footer { padding: 58px 0 88px; color: #3c3f45; background: #f49900; text-align: center; }
.ashida-wp-footer__name { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.ashida-wp-footer p { margin: 4px 0; }
.ashida-wp-footer a { color: inherit; }
.ashida-wp-footer__privacy { font-size: 14px; }
.ashida-policy { width: min(920px, calc(100% - 40px)); margin: 0 auto; }
.ashida-policy__header { margin-bottom: 38px; padding: 36px 40px; border-radius: 24px; background: #fff8ec; }
.ashida-policy__eyebrow { margin: 0 0 5px; color: var(--ashida-orange-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.ashida-policy__header h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 48px); line-height: 1.35; }
.ashida-policy__header p:last-child { margin: 0; color: #555; }
.ashida-policy__body { color: #303744; font-size: 16px; }
.ashida-policy__body section { margin-bottom: 34px; padding-bottom: 30px; border-bottom: 1px solid #eadfcf; }
.ashida-policy__body h2 { margin: 0 0 14px; color: #3c3f45; font-size: 24px; line-height: 1.5; }
.ashida-policy__body h2::before { margin-right: 9px; color: var(--ashida-orange); content: "●"; font-size: 10px; vertical-align: .22em; }
.ashida-policy__body h3 { margin: 22px 0 8px; color: #66553f; font-size: 18px; }
.ashida-policy__body p { margin: 0 0 14px; }
.ashida-policy__body ul { margin: 0 0 18px; padding-left: 1.5em; }
.ashida-policy__body li { margin-bottom: 7px; }
.ashida-policy__note, .ashida-policy__contact { padding: 20px 24px; border-radius: 14px; background: #fffaf1; }
.ashida-policy__contact { border-bottom: 0 !important; }
.ashida-policy__updated { color: #667085; font-size: 13px; text-align: right; }
.ashida-desktop-footer__privacy-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ashida-mobile-cta { display: none; }

/* 静的ページ内へ差し込むWordPress投稿一覧 */
.ashida-wp-news-list { display: grid; gap: 12px; width: 100%; }
.ashida-wp-news-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #eadfcf; background: #fff; }
.ashida-wp-news-item time { color: #667085; font-size: 14px; }
.ashida-wp-news-item a { color: #262626; font-size: 17px; font-weight: 700; text-decoration: none; }
.ashida-wp-news-item a:hover { color: var(--ashida-orange-dark); }
.ashida-wp-news-empty { padding: 20px; background: #fff; }
.ashida-wp-news-more { margin: 22px 0 0; text-align: right; }
.ashida-wp-news-more a { color: var(--ashida-orange-dark); font-weight: 700; }
.ashida-wp-news-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.ashida-wp-news-pagination .page-numbers { min-width: 38px; padding: 6px 10px; border: 1px solid var(--ashida-border); border-radius: 6px; color: var(--ashida-ink); text-align: center; text-decoration: none; }
.ashida-wp-news-pagination .current { border-color: var(--ashida-orange); background: var(--ashida-orange); color: #fff; }
.ashida-fb-news-list { display: grid; width: 100%; }
.ashida-fb-news-item { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 20px; padding: 15px 8px; border: 0; border-bottom: 1px dashed #edc27f; background: transparent; }
.ashida-fb-news-item:last-child { border-bottom: 0; }
.ashida-fb-news-item time { padding-top: 2px; color: var(--ashida-orange-dark); font-size: 13px; font-weight: 700; }
.ashida-fb-news-item h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.ashida-fb-news-item h3 a { color: var(--ashida-ink); font-size: inherit; font-weight: 600; text-decoration: none; }
.ashida-fb-news-item h3 a::after { content: " ›"; color: var(--ashida-orange-dark); }
.ashida-fb-news-item h3 a:hover { color: var(--ashida-orange-dark); text-decoration: underline; }
.ashida-fb-news-list + .ashida-wp-news-more { margin-top: 14px; }
.ashida-fb-news-list + .ashida-wp-news-more a { color: #1877f2; font-size: 14px; font-weight: 600; }
.ashida-fb-news-list + .ashida-wp-news-more a:hover { color: #0f5fc7; }
.ashida-line-promo { position: relative; overflow: hidden; padding: 26px clamp(24px, 5vw, 72px) 30px; background: #fffaf1; }
.ashida-line-promo::before { position: absolute; top: -90px; right: -70px; width: 210px; height: 210px; border-radius: 50%; background: #f6e8be; content: ""; opacity: .75; }
.ashida-line-promo__card { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 410px; overflow: hidden; max-width: 1220px; margin: 0 auto; border: 1px solid #ccebd5; border-radius: 24px; background: #fff; box-shadow: 0 14px 34px rgba(54, 93, 65, .08); }
.ashida-line-promo__copy { padding: 22px 34px 20px; }
.ashida-line-promo__badge { display: inline-flex; align-items: center; margin-bottom: 11px; padding: 7px 16px; border-radius: 99px; background: #06c755; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .03em; }
.ashida-line-promo h2 { margin: 0 0 9px; color: var(--ashida-ink); font-size: clamp(25px, 2.3vw, 34px); line-height: 1.28; }
.ashida-line-promo h2 strong { color: #06c755; }
.ashida-line-promo__copy > p { margin: 0 0 12px; color: #4c5668; font-size: 14px; line-height: 1.65; }
.ashida-line-promo ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 15px; padding: 0; list-style: none; }
.ashida-line-promo li { padding: 5px 9px; border-radius: 99px; background: #fff7dd; color: #6d5518; font-size: 11px; font-weight: 700; }
.ashida-line-promo__visual { display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px 24px; background: linear-gradient(145deg, #eaffef, #f8fff9); }
.ashida-line-promo__visual img { display: block; width: 100%; max-width: 370px; border-radius: 15px; box-shadow: 0 12px 26px rgba(23, 99, 49, .13); }
.ashida-line-promo__visual a { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 370px); padding: 10px 20px; border-radius: 99px; background: #06c755; box-shadow: 0 8px 18px rgba(6, 199, 85, .18); color: #fff; font-size: 14px; font-weight: 900; text-decoration: none; }
.ashida-line-promo__visual a:hover { background: #05b64e; transform: translateY(-1px); }
.ashida-contact-result { margin: 0 auto 24px; padding: 14px 18px; border-radius: 8px; max-width: 900px; }
.ashida-contact-result--success { background: #e8f8ec; color: #176a2e; }
.ashida-contact-result--error { background: #fff0f0; color: #a22626; }

/* PCトップ：はじめての方向け案内を見やすくし、予約・問診を直接開けるようにする */
.ashida-firsttime-pc { position: relative; width: 100%; }
.ashida-firsttime-pc > img { display: block; width: 100%; height: auto; }
.ashida-firsttime-pc__link { position: absolute; z-index: 2; top: 43%; bottom: 3%; border-radius: 18px; }
.ashida-firsttime-pc__link--reserve { left: 15%; width: 25%; }
.ashida-firsttime-pc__link--interview { left: 40%; width: 25%; }
.ashida-firsttime-pc__link:focus-visible { outline: 4px solid #1a73e8; outline-offset: 4px; }

@media (min-width: 1025px) {
  .elementor-43 .elementor-element.elementor-element-8b434f7 {
    left: 50%;
    width: min(88vw, 1380px);
    max-width: none;
    transform: translateX(-50%);
  }
}

/* トップ下部：重複する医院情報を省き、医療機関情報リンクだけを簡潔に表示 */
.elementor-element-6a24f2e { --padding-top: 28px !important; --padding-bottom: 28px !important; min-height: 0 !important; }
.elementor-element-6a24f2e > .e-con-inner { min-height: 0 !important; }
.elementor-element-01c385d { --gap: 14px !important; width: 100% !important; max-width: 920px; margin-inline: auto; }
.elementor-element-c2a792e p { margin: 0 !important; font-size: 15px; line-height: 1.75; }
.elementor-element-726762f { margin: 0 !important; }
.elementor-element-726762f .elementor-button { padding-block: 13px !important; }
.ashida-web-interview-mobile { display: none; }
.ashida-web-interview-original { display: none !important; }
.ashida-cute-divider { display: grid; width: min(760px, calc(100% - 48px)); grid-template-columns: minmax(60px, 1fr) 150px minmax(60px, 1fr); align-items: center; gap: 24px; margin: 44px auto 8px; }
.ashida-cute-divider__line { height: 1px; background: linear-gradient(90deg, transparent, #c9ddd7); }
.ashida-cute-divider__line:last-child { background: linear-gradient(90deg, #c9ddd7, transparent); }
.ashida-cute-divider img { display: block; width: 150px; height: auto; filter: drop-shadow(0 7px 9px rgba(82,74,64,.1)); animation: ashida-divider-float 4s ease-in-out infinite; }
.ashida-notice-accordion__item { border-color: #e7dfd3 !important; }
.ashida-notice-accordion__item:first-child { border-top-color: #e7dfd3 !important; }
.ashida-notice-accordion__title { color: #554f49 !important; }
.ashida-notice-accordion__title::after { background: #eef7f4 !important; color: #5c9d91 !important; }
.ashida-notice-accordion__item[open] .ashida-notice-accordion__title::after { background: #5c9d91 !important; color: #fff !important; }
.ashida-notice-accordion__date { color: #5c9d91 !important; }
.elementor-widget-heading h3.elementor-heading-title,
.elementor-widget-heading h4.elementor-heading-title { color: var(--ashida-copy) !important; }
.elementor-element-a91621c .e-n-accordion-item { border-color: var(--ashida-line-soft) !important; }
.elementor-element-a91621c .e-n-accordion-item-title { color: var(--ashida-copy) !important; }
.elementor-element-a91621c .e-n-accordion-item-title-icon { color: var(--ashida-mint) !important; }
.ashida-policy__eyebrow { color: var(--ashida-mint) !important; }
.ashida-policy__body h2::before { color: var(--ashida-mint) !important; }
body .ashida-desktop-footer__ornament,
body .ashida-desktop-footer__icon,
body .ashida-desktop-footer__dot,
body .ashida-desktop-footer__divider { color: var(--ashida-mint); }
body .ashida-desktop-footer__ornament::before,
body .ashida-desktop-footer__ornament::after,
body .ashida-desktop-footer__divider::before,
body .ashida-desktop-footer__divider::after { border-color: #c9ddd7; }
.ashida-web-interview-footer { padding: 30px 24px 34px; border-top: 1px solid #f2ddb8; background: #fffdf9; }
.ashida-web-interview-footer a { display: block; width: min(1120px, 100%); margin: 0 auto; }
.ashida-web-interview-footer img { display: block; width: 100%; height: auto; }

@media (min-width: 821px) {
  .elementor-element-8349d54 { display: none !important; }
}

@media (max-width: 820px) {
  html,
  body { width: 100%; max-width: 100%; overflow-x: clip; }
  .ashida-breadcrumb { padding-inline: 18px; }
  .ashida-breadcrumb__inner { padding-block: 10px; font-size: 12px; }
  /* ログイン中のスマホ確認ではWordPress管理バーを隠し、公開時と同じ見た目にする */
  html { margin-top: 0 !important; }
  #wpadminbar { display: none !important; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* スマホヘッダー：ロゴを左、メニューを右に置いたコンパクトな構成 */
  #masthead #ast-mobile-header { display: block !important; background: #fffdf9; }
  #masthead #ast-mobile-header .ast-primary-header-bar { min-height: 72px !important; padding: 0 !important; border-bottom: 1px solid #f2ddb8; background: #fffdf9; }
  #masthead #ast-mobile-header .ast-builder-grid-row { display: grid !important; width: 100%; max-width: none; min-height: 72px; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; gap: 12px; padding: 9px 16px; }
  #masthead #ast-mobile-header .site-header-primary-section-left,
  #masthead #ast-mobile-header .site-header-primary-section-right { display: flex !important; min-width: 0; align-items: center; }
  #masthead #ast-mobile-header .site-header-primary-section-right { justify-content: flex-end; }
  #masthead #ast-mobile-header .site-branding,
  #masthead #ast-mobile-header .ast-site-identity { width: 100%; padding: 0 !important; }
  #masthead #ast-mobile-header .site-logo-img { display: block; }
  #masthead #ast-mobile-header .custom-logo-link { display: block; width: min(100%, 228px); }
  #masthead #ast-mobile-header .custom-logo { display: block; width: 100% !important; max-width: 228px !important; height: auto !important; }
  #masthead #ast-mobile-header .ast-site-title-wrap { display: none !important; }
  #masthead #ast-mobile-header [data-section="section-header-mobile-trigger"] { display: block !important; }
  #masthead #ast-mobile-header .ast-button-wrap { display: block !important; }
  #masthead #ast-mobile-header .main-header-menu-toggle { position: relative; display: grid !important; width: 52px; height: 52px; min-width: 52px; padding: 7px 7px 15px !important; place-items: center; border: 1px solid #d7ebe5 !important; border-radius: 18px !important; background: #eef8f5 !important; box-shadow: 0 5px 14px rgba(61, 119, 102, .12); color: #4f9383 !important; }
  #masthead #ast-mobile-header .main-header-menu-toggle::after { position: absolute; right: 0; bottom: 5px; left: 0; color: #447b70; content: "MENU"; font-size: 8px; font-weight: 800; letter-spacing: .08em; line-height: 1; text-align: center; }
  #masthead #ast-mobile-header .main-header-menu-toggle:hover,
  #masthead #ast-mobile-header .main-header-menu-toggle:focus { border-color: #badfd5 !important; background: #e3f4ef !important; color: #327d6c !important; }
  #masthead #ast-mobile-header .mobile-menu-toggle-icon { position: relative; display: block; width: 22px; height: 15px; background: linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6px, currentColor 6px 9px, transparent 9px 13px, currentColor 13px 15px); color: inherit; line-height: 1; }
  #masthead #ast-mobile-header .mobile-menu-toggle-icon .ahfb-svg-iconset { display: none !important; }
  #masthead #ast-mobile-header .main-header-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon { height: 18px; background: none; }
  #masthead #ast-mobile-header .main-header-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::before,
  #masthead #ast-mobile-header .main-header-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::after { position: absolute; top: 8px; left: 1px; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
  #masthead #ast-mobile-header .main-header-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::before { transform: rotate(45deg); }
  #masthead #ast-mobile-header .main-header-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::after { transform: rotate(-45deg); }
  #masthead #ast-mobile-header .ast-mobile-header-content {
    position: absolute;
    z-index: 9998;
    right: 10px;
    left: 10px;
    display: none !important;
    overflow: hidden;
    margin-top: 7px;
    border: 1px solid #eadfce;
    border-radius: 0 0 24px 24px;
    background: rgba(255,253,249,.98);
    box-shadow: 0 18px 34px rgba(66, 49, 30,.16);
    backdrop-filter: blur(12px);
  }
  body.ast-main-header-nav-open #masthead #ast-mobile-header .ast-mobile-header-content,
  #masthead #ast-mobile-header:has(.main-header-menu-toggle[aria-expanded="true"]) .ast-mobile-header-content {
    display: block !important;
  }
  #masthead #ast-mobile-header .ast-builder-menu-mobile,
  #masthead #ast-mobile-header .main-header-bar-navigation { width: 100%; }
  #masthead #ast-mobile-header #ast-hf-mobile-menu { display: grid !important; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 !important; padding: 16px 14px 18px !important; border: 0 !important; background: transparent !important; }
  #masthead #ast-mobile-header #ast-hf-mobile-menu > li { min-width: 0; border: 0 !important; }
  #masthead #ast-mobile-header #ast-hf-mobile-menu > li > .menu-link { position: relative; display: flex !important; min-height: 50px; align-items: center; padding: 10px 10px 10px 34px !important; border: 1px solid #f1e5d5 !important; border-radius: 14px; background: #fff; color: #303845 !important; font-size: 13px !important; font-weight: 800; line-height: 1.35; text-decoration: none; }
  #masthead #ast-mobile-header #ast-hf-mobile-menu > li > .menu-link::before { position: absolute; left: 13px; width: 10px; height: 10px; border-radius: 50% 45% 50% 45%; background: #f3b662; box-shadow: 5px 4px 0 -2px #b9ddd4; content: ""; transform: rotate(-12deg); }
  #masthead #ast-mobile-header #ast-hf-mobile-menu > li.current-menu-item > .menu-link { border-color: #c9e5dd !important; background: #eef8f5; color: #327d6c !important; }
  #masthead #ast-mobile-header #ast-hf-mobile-menu > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #masthead #ast-mobile-header #ast-hf-mobile-menu > li:last-child:nth-child(odd) > .menu-link { justify-content: center; padding-left: 10px !important; }
  #masthead #ast-mobile-header #ast-hf-mobile-menu > li:last-child:nth-child(odd) > .menu-link::before { position: static; margin-right: 10px; }

  .ashida-mobile-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 9999; box-sizing: border-box; display: grid; width: 100%; max-width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #f2ddb8; background: rgba(255,253,248,.96); box-shadow: 0 -10px 24px rgba(80,55,20,.12); backdrop-filter: blur(10px); }
  .ashida-mobile-cta__item { display: flex; min-width: 0; min-height: 56px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(80,55,20,.08); color: #0f172a !important; font-size: 12px; font-weight: 800; line-height: 1.2; text-decoration: none !important; }
  .ashida-mobile-cta__item--primary { background: #ef8f00; color: #fff !important; }
  .ashida-mobile-cta__icon { display: inline-flex; min-width: 34px; height: 18px; align-items: center; justify-content: center; border-radius: 999px; background: #fff8ec; color: #ef8f00; font-size: 11px; }
  .ashida-mobile-cta__item--primary .ashida-mobile-cta__icon { background: rgba(255,255,255,.22); color: #fff; }
  .ashida-mobile-cta__item--interview { background: #eaf9fd; color: #126780 !important; }
  .ashida-mobile-cta__item--interview .ashida-mobile-cta__icon { background: #fff; color: #1596b4; }
  .ashida-policy { width: min(100% - 28px, 920px); }
  .ashida-policy__header { margin-bottom: 26px; padding: 25px 20px; border-radius: 18px; }
  .ashida-policy__header h1 { font-size: 28px; }
  .ashida-policy__body { font-size: 14px; line-height: 1.8; }
  .ashida-policy__body section { margin-bottom: 25px; padding-bottom: 22px; }
  .ashida-policy__body h2 { margin-bottom: 10px; font-size: 19px; }
  .ashida-policy__body h3 { margin-top: 18px; font-size: 16px; }
  .ashida-policy__note, .ashida-policy__contact { padding: 16px; }
  .elementor-element-a14f59f { margin-top: 28px !important; }
  .elementor-element-7fad831 { padding-inline: 14px !important; }
  .elementor-element-a91621c .e-n-accordion-item { margin-bottom: 8px !important; }
  .elementor-element-a91621c .e-n-accordion-item:last-child { margin-bottom: 0 !important; }
  .elementor-element-a91621c .e-n-accordion-item-title { min-height: 0 !important; padding: 10px 12px !important; font-size: 15px !important; line-height: 1.45 !important; }
  .elementor-element-a91621c .e-n-accordion-item-title-text { line-height: inherit !important; }
  .elementor-element-a91621c .e-n-accordion-item-title-icon { font-size: 14px !important; }
  .elementor-element-a91621c details > [role="region"] { gap: 0 !important; padding: 13px 14px !important; }
  .elementor-element-a91621c details > [role="region"] p { margin: 0 !important; font-size: 14px !important; line-height: 1.65 !important; }
  .elementor-element-386d805 { display: none !important; }
  .ashida-web-interview-footer { display: none !important; }
  .ashida-cute-divider { display: grid; grid-template-columns: minmax(28px,1fr) 108px minmax(28px,1fr); align-items: center; gap: 14px; margin: 26px 28px 2px; }
  .ashida-cute-divider__line { height: 1px; background: linear-gradient(90deg, transparent, #c9ddd7); }
  .ashida-cute-divider__line:last-child { background: linear-gradient(90deg, #c9ddd7, transparent); }
  .ashida-cute-divider img { display: block; width: 108px; height: auto; filter: drop-shadow(0 6px 7px rgba(82,74,64,.1)); animation: ashida-divider-float 4s ease-in-out infinite; }
  .ashida-notice-accordion { margin-top: 12px !important; }
  .ashida-notice-accordion__item { border-color: #e7dfd3 !important; }
  .ashida-notice-accordion__item:first-child { border-top-color: #e7dfd3 !important; }
  .ashida-notice-accordion__title { color: #554f49 !important; }
  .ashida-notice-accordion__title::after { background: #eef7f4 !important; color: #5c9d91 !important; }
  .ashida-notice-accordion__item[open] .ashida-notice-accordion__title::after { background: #5c9d91 !important; color: #fff !important; }
  .elementor-element-6a24f2e { --margin-top: 18px !important; margin-top: 18px !important; --padding-top: 16px !important; --padding-bottom: 18px !important; padding-inline: 14px !important; }
  .elementor-element-6a24f2e > .e-con-inner { padding-block: 16px 18px !important; }
  .elementor-element-01c385d { --gap: 10px !important; gap: 10px !important; padding: 0 !important; }
  .elementor-element-c2a792e p { font-size: 13px !important; line-height: 1.7 !important; }
  .elementor-element-726762f .elementor-button { width: 100%; padding: 11px 14px !important; font-size: 14px !important; }
  .elementor-element-ff789e1 a { display: block; color: inherit; text-decoration: none; }
  .elementor-element-ff789e1 img { display: none !important; }
  .ashida-web-interview-mobile { display: block; overflow: hidden; border: 2px solid #47b2d7; border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgba(44,145,181,.12); }
  .ashida-web-interview-mobile__eyebrow { display: block; padding: 6px 12px; background: #47b2d7; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
  .ashida-web-interview-mobile__body { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 13px 12px 6px; }
  .ashida-web-interview-mobile__icon { display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid #28afc8; border-radius: 8px; color: #28afc8; font-size: 24px; font-weight: 900; }
  .ashida-web-interview-mobile__copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
  .ashida-web-interview-mobile__copy strong { color: #111; font-size: 22px; letter-spacing: .02em; }
  .ashida-web-interview-mobile__copy small { margin-top: 3px; color: #555; font-size: 10px; font-weight: 700; line-height: 1.3; }
  .ashida-web-interview-mobile__button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 7px; background: #183f50; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
  .ashida-web-interview-mobile__button b { font-size: 10px; }
  .ashida-web-interview-mobile__note { display: block; padding: 0 12px 8px; color: #777; font-size: 9px; text-align: right; }
  .ashida-wp-header__inner { padding: 14px 0; flex-direction: column; align-items: flex-start; }
  .ashida-wp-nav { gap: 10px 16px; }
  .ashida-wp-nav a { font-size: 14px; }
  .ashida-wp-main { padding-top: 42px; }
  .ashida-wp-news-item { grid-template-columns: 1fr; gap: 4px; }
  .ashida-fb-news-item { display: block; padding: 16px 18px; }
  .ashida-fb-news-item time { display: block; margin-bottom: 5px; padding-top: 0; }
  .ashida-fb-news-item h3 { font-size: 18px; }
  .ashida-line-promo { padding: 24px 18px 32px; }
  .ashida-line-promo__card { grid-template-columns: 1fr; }
  .ashida-line-promo__copy { padding: 28px 22px 24px; }
  .ashida-line-promo__visual { padding: 20px; }

  /* トップページのスマホ用ファーストビュー：写真から曲線で紹介文へつなぐ */
  body .ashida-hero { padding: 0 0 22px !important; background: #fffdf9 !important; }
  body .ashida-hero .ashida-inner { position: relative; display: flex !important; padding: 0 !important; background: #fffdf9; }
  body .ashida-hero .ashida-title { display: none !important; }
  body .ashida-hero .ashida-photo {
    order: 1 !important;
    width: calc(100% - 34px) !important;
    margin: 10px 17px 0 !important;
    aspect-ratio: 1.28 / 1 !important;
    border-radius: 12px 12px 48% 48% / 12px 12px 15% 15% !important;
    box-shadow: 0 10px 24px rgba(76, 54, 29, .08) !important;
    overflow: hidden !important;
  }
  body .ashida-hero .ashida-photo::after {
    z-index: 1 !important;
    background: linear-gradient(180deg, transparent 56%, rgba(30, 25, 18, .16) 100%) !important;
  }
  body .ashida-hero .ashida-photo::before {
    position: absolute;
    right: -3%;
    bottom: -1px;
    left: -3%;
    z-index: 3;
    height: 54px;
    border-bottom: 7px solid #d96800;
    border-radius: 0 0 50% 50%;
    content: "";
    pointer-events: none;
  }
  body .ashida-hero .ashida-text { display: contents !important; }
  body .ashida-hero .ashida-catch {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 27px 24px 10px !important;
    background: #fffdf9;
    color: #202b3d !important;
    font-size: clamp(16px, 5vw, 21px) !important;
    line-height: 1.48 !important;
    letter-spacing: .035em !important;
    text-shadow: none !important;
  }
  body .ashida-hero .ashida-catch span { display: block !important; white-space: nowrap !important; }
  body .ashida-hero .ashida-catch br { display: none; }
  body .ashida-hero .ashida-catch::before {
    display: block;
    width: 38px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 99px;
    background: #ef8f00;
    content: "";
  }
  body .ashida-hero .ashida-catch::after {
    display: block !important;
    width: 100% !important;
    margin-top: 12px !important;
    color: #535b68;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.75 !important;
    letter-spacing: .01em !important;
  }
  body .ashida-hero .ashida-buttons {
    order: 3 !important;
    width: calc(100% - 40px) !important;
    margin: 15px auto 0 !important;
  }
  /* 固定下部メニューと役割が重なるため、スマホではLINEの浮遊バナーを隠す */
  body .ashida-line-float { display: none !important; }
  #masthead #ast-mobile-header .main-header-menu-toggle {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    padding: 0 !important;
    border-color: #d96800 !important;
    border-radius: 7px 7px 7px 23px !important;
    background: #d96800 !important;
    box-shadow: 0 7px 16px rgba(181, 78, 0, .25) !important;
    color: #fff !important;
  }
  #masthead #ast-mobile-header .main-header-menu-toggle::after { display: none !important; content: none !important; }
  #masthead #ast-mobile-header .main-header-menu-toggle:hover,
  #masthead #ast-mobile-header .main-header-menu-toggle:focus { border-color: #b95000 !important; background: #b95000 !important; color: #fff !important; }

  /* 診療項目ページ：6項目をスマホで2列×3段のカードに整理 */
  .elementor-1814 .elementor-element-c99dada { --padding-top: 28px !important; --padding-bottom: 18px !important; }
  .elementor-1814 .elementor-element-21cfe5a { --gap: 10px !important; }
  .elementor-1814 .elementor-element-7eea971 .elementor-heading-title { font-size: 30px !important; line-height: 1.3 !important; }
  .elementor-1814 .elementor-element-7e20ca5 { width: 54px !important; margin: 0 !important; }
  .elementor-1814 .elementor-element-bf1d1e2 { --padding-top: 10px !important; --padding-right: 12px !important; --padding-bottom: 34px !important; --padding-left: 12px !important; }
  .elementor-1814 .elementor-element-bf1d1e2 > .e-con-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .elementor-1814 .elementor-element-bf1d1e2 > .e-con-inner > .e-con {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 148px !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 13px 7px 12px !important;
    border: 2px solid #f2ddb8;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 15px rgba(80,55,20,.05);
  }
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-widget-image-box,
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-widget-container,
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-image-box-wrapper { width: 100% !important; }
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-image-box-wrapper { display: flex !important; height: 100%; flex-direction: column; align-items: center; justify-content: center; }
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-image-box-img { margin: 0 0 7px !important; }
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-image-box-img img { width: 29px !important; height: 29px !important; object-fit: contain; }
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-image-box-title { margin: 0 0 6px !important; color: #df7f00 !important; font-size: 15px !important; font-weight: 800 !important; line-height: 1.35 !important; }
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-image-box-description { margin: 0 !important; color: #273142 !important; font-size: 11.5px !important; line-height: 1.55 !important; text-align: center; }
  .elementor-1814 .elementor-element-bf1d1e2 .elementor-image-box-description br { display: none; }

  /* 院長写真は縦長なので、スマホでは上端を基準にして頭上を切らない */
  .elementor-69 .elementor-element-f2629de {
    background-position: center top !important;
  }
}

@keyframes ashida-divider-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

/* PCではAstraのスマホ用ヘッダーを確実に隠し、二重表示を防ぐ */
@media (min-width: 821px) {
  #masthead #ast-desktop-header {
    display: block !important;
  }
  #masthead #ast-mobile-header {
    display: none !important;
  }
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    position: relative;
    color: #464b50 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color .24s ease;
  }
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link::after {
    position: absolute;
    right: 17px;
    bottom: -4px;
    left: 17px;
    height: 1.5px;
    border-radius: 999px;
    background: #df7f00;
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity .24s ease, transform .24s ease;
  }
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:focus-visible,
  #masthead #ast-desktop-header .main-header-menu > .current-menu-item > .menu-link,
  #masthead #ast-desktop-header .main-header-menu > .current_page_item > .menu-link,
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link[aria-current="page"] {
    color: #df7f00 !important;
  }
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover::after,
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:focus-visible::after,
  #masthead #ast-desktop-header .main-header-menu > .current-menu-item > .menu-link::after,
  #masthead #ast-desktop-header .main-header-menu > .current_page_item > .menu-link::after,
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
  }

  /* Gutenberg側の共通ヘッダーも、静的ページと同じ穏やかなナビ表現にする */
  .ashida-wp-nav a {
    position: relative;
    color: #464b50;
    font-weight: 500;
    transition: color .24s ease;
  }
  .ashida-wp-nav a::after {
    position: absolute;
    right: -4px;
    bottom: -6px;
    left: -4px;
    height: 1.5px;
    border-radius: 999px;
    background: #df7f00;
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity .24s ease, transform .24s ease;
  }
  .ashida-wp-nav a:hover,
  .ashida-wp-nav a:focus-visible,
  .ashida-wp-nav a[aria-current="page"] {
    color: #df7f00;
  }
  .ashida-wp-nav a:hover::after,
  .ashida-wp-nav a:focus-visible::after,
  .ashida-wp-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* 「当院について」PC版：全セクションの外幅と本文の読み幅を統一 */
@media (min-width: 1025px) {
  body.page-id-69 .elementor-69 {
    width: min(980px, calc(100% - 64px));
    margin-inline: auto;
  }
  body.page-id-69 .elementor-69 > .e-con.e-parent {
    width: 100% !important;
    max-width: 980px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
  body.page-id-69 .elementor-69 > .e-con.e-parent > .e-con-inner {
    width: 100% !important;
    max-width: none !important;
  }
  body.page-id-69.elementor-page-69 .elementor-69 .elementor-element.elementor-element-4eadafb {
    --width: 100%;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 48px 64px !important;
  }
  body.page-id-69 .elementor-69 .elementor-element-93dad19,
  body.page-id-69 .elementor-69 .elementor-element-3949a65 {
    width: 100% !important;
    max-width: none !important;
  }
  body.page-id-69 .elementor-69 .elementor-element-c12df59,
  body.page-id-69 .elementor-69 .elementor-element-743b9da {
    width: min(100%, 800px) !important;
    margin-inline: auto;
  }
  body.page-id-69 .elementor-69 .elementor-widget-text-editor {
    color: #4c5561;
    font-weight: 400;
  }
  body.page-id-69 .elementor-69 .elementor-widget-text-editor p {
    margin-top: 0;
    margin-bottom: 1.25em;
    font-size: 16px;
    line-height: 2;
    letter-spacing: .015em;
  }
  body.page-id-69 .elementor-69 .elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
  }
  body.page-id-69 .elementor-69 .elementor-element-00526a6 .elementor-heading-title,
  body.page-id-69 .elementor-69 .elementor-element-de86453 .elementor-heading-title {
    color: #555b61 !important;
    font-weight: 500 !important;
    line-height: 1.55;
  }
}

/* 2026-08-15: mobile readability and duplicate-header fixes */
@media (max-width: 820px) {
  /* AstraのPC用ヘッダーがスマホ用ヘッダーの上に残るのを防ぐ */
  #masthead #ast-desktop-header {
    display: none !important;
  }

  /* Blog / 院内紹介：英字見出しと日本語見出しを通常の文書フローで表示 */
  .elementor-43 .elementor-element-e1e49a2,
  .elementor-43 .elementor-element-8ec3805 {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .elementor-43 .elementor-element-0ec746d > .elementor-widget-container,
  .elementor-43 .elementor-element-d1110b8 > .elementor-widget-container,
  .elementor-43 .elementor-element-56f149d > .elementor-widget-container,
  .elementor-43 .elementor-element-cb7fe22 > .elementor-widget-container {
    margin: 0 !important;
  }
  .elementor-43 .elementor-element-0ec746d .elementor-heading-title,
  .elementor-43 .elementor-element-56f149d .elementor-heading-title {
    font-size: 32px !important;
    line-height: 1.1 !important;
  }
  .elementor-43 .elementor-element-d1110b8 .elementor-heading-title,
  .elementor-43 .elementor-element-cb7fe22 .elementor-heading-title {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  /* Q&Aを初期デザイン（月と切り株だけの横長構成）へ戻す */
  .elementor-43 .elementor-element-a14f59f {
    min-height: 0 !important;
    aspect-ratio: 7 / 3 !important;
    margin-top: 28px !important;
    padding: 0 !important;
    background-color: #fff !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }
  .elementor-43 .elementor-element-a14f59f:hover {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }
}
/* Ashida layout correction 2026-09-08: navigation and hero cards. */
@media (min-width: 821px) {
  #masthead #ast-desktop-header .ast-builder-grid-row {
    grid-template-columns: auto minmax(0, 1fr) !important;
    column-gap: clamp(12px, 2vw, 28px);
  }
  #masthead #ast-desktop-header .custom-logo {
    width: clamp(220px, 26vw, 330px) !important;
    max-width: 100%;
    height: auto;
  }
  #masthead #ast-desktop-header .site-header-primary-section-right {
    min-width: 0;
    justify-content: flex-end;
  }
  #masthead #ast-desktop-header .main-header-menu {
    flex-wrap: nowrap !important;
  }
  #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    padding-inline: clamp(7px, 1.1vw, 17px) !important;
    font-size: clamp(13px, 1.45vw, 20px) !important;
    white-space: nowrap;
  }
}
@media (min-width: 901px) {
  .ashida-hero .ashida-buttons > .ashida-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 156px;
    padding: 16px 12px 36px !important;
    gap: 10px;
    text-align: center;
  }
  .ashida-hero .ashida-btn-icon,
  .ashida-hero .ashida-line-badge {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .ashida-hero .ashida-btn-text { flex: 0 1 auto; width: 100%; }
  .ashida-hero .ashida-btn-title {
    font-size: clamp(15px, 1.12vw, 20px);
    line-height: 1.4;
    white-space: normal;
    text-wrap: balance;
  }
  .ashida-hero .ashida-btn .ashida-btn-sub {
    font-size: clamp(10px, .76vw, 13px);
    line-height: 1.4;
    white-space: normal;
  }
  .ashida-hero .ashida-arrow { width: 24px; height: 24px; font-size: 19px; }
}
@media (max-width: 767px) {
  .ashida-hero .ashida-btn-title {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.3;
    white-space: normal;
  }
  .ashida-hero .ashida-btn-sub { line-height: 1.4; white-space: normal; }
}
