/* =============================================
   clinic.css - フェーズ3 コンテンツ強化
   うめい内科医院
   ============================================= */

/* ===== PCではスマホ用メニューを確実に非表示 ===== */
#menu-toggle,
#mobile-nav,
#mobile-nav.is-open {
  display: none !important;
}

/* ===== トップページ メイン画像 ===== */
.hpb-layoutset-01 #hpb-title.hpb-top-image {
  overflow: hidden;
}

.hpb-layoutset-01 #hpb-title.hpb-top-image h2 {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  background-image: none !important;
}

.top-hero-picture {
  display: block;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.top-hero-picture img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* ===== 当院の特徴グリッド ===== */
.visit-guide-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 18px;
}

.visit-guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 14px 13px;
  background: #ffffff;
  border: 1px solid #d8e8d4;
  border-radius: 6px;
  box-sizing: border-box;
  line-height: 1.7;
}

.visit-guide-card h3 {
  margin: 0 0 8px !important;
  padding: 0 0 6px !important;
  color: #1b5e20;
  background-image: none !important;
  background-color: transparent !important;
  border-bottom: 1px solid #d8e8d4 !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
}

.visit-guide-card p {
  flex: 1;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #333333;
  font-size: 0.9em;
  line-height: 1.7;
}

.visit-guide-card-fever {
  border-color: #e9c7c7;
}

.visit-guide-card-fever h3 {
  color: #8f1d1d;
  border-bottom-color: #e9c7c7 !important;
}

.visit-guide-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  color: #ffffff !important;
  background: #2f6f3a;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 0.9em;
  font-weight: bold;
  line-height: 1.4;
}

.visit-guide-btn:hover {
  background: #1b5e20;
  text-decoration: none !important;
}

.visit-guide-btn-tel {
  background: #c62828;
}

.visit-guide-btn-tel:hover {
  background: #9f1f1f;
}

#features {
  margin: 16px 0 20px;
  padding: 12px 14px;
  background: #fbfdfb;
  border-top: 1px solid #d8e8d4;
  border-bottom: 1px solid #d8e8d4;
  border-radius: 0;
}

#features h3 {
  margin-top: 4px !important;
  margin-bottom: 12px !important;
  background-image: none !important;
  background-color: transparent !important;
  border-bottom-color: #d8e8d4 !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
}

#toppage-news > h3 {
  background-image: none !important;
  background-color: transparent !important;
  margin: 12px 13px 8px !important;
  padding: 0 0 6px !important;
  border-bottom: 1px solid #d8e8d4 !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
}

#toppage-news > h3 span.en {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #1b5e20 !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}

.feature-item {
  background: transparent;
  border: 0;
  border-top: 1px solid #e5eee2;
  border-radius: 0;
  padding: 10px 0;
  font-size: 0.92em;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: none;
  min-width: 0;
  color: #333;
}

.feature-item strong {
  color: #2f6b3f;
  font-size: 0.95em;
  font-weight: bold;
  line-height: 1.5;
}

.feature-item span {
  display: block;
  color: #333333;
  line-height: 1.7;
}

/* ===== 治療方針・FAQページ ===== */
.policy-section {
  margin: 18px 0 22px;
}

#policy .policy-section h3 {
  margin: 0 0 12px !important;
  padding: 0 0 7px !important;
  background-image: none !important;
  background-color: transparent !important;
  border-bottom: 1px solid #d8e8d4 !important;
  color: #1b5e20;
  font-size: 16px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
}

#policy #flow.flow-steps {
  display: grid;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  list-style: none;
}

#policy #flow.flow-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 0;
  margin: 0 !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8e8d4;
  border-radius: 6px;
  box-sizing: border-box;
}

#policy #flow.flow-steps li:first-child {
  padding-top: 12px !important;
}

.flow-step-number {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: #2f6b3f;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.flow-step-body {
  flex: 1;
  min-width: 0;
}

#policy #flow.flow-steps h4 {
  float: none !important;
  width: auto !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: #2f6b3f;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

#policy #flow.flow-steps p {
  margin: 0 0 4px !important;
  padding: 0 !important;
  line-height: 1.75;
  text-align: left !important;
  text-indent: 0 !important;
}

#policy #flow.flow-steps p:last-child {
  margin-bottom: 0 !important;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #d8e8d4;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 11px 38px 11px 14px;
  color: #245d34;
  background: #fbfdfb;
  cursor: pointer;
  font-weight: bold;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: #2f6b3f;
  border-radius: 50%;
  text-align: center;
  font-size: 16px;
  font-weight: normal;
  line-height: 20px;
  transform: translateY(-50%);
}

.faq-item[open] summary {
  border-bottom: 1px solid #d8e8d4;
  background: #f4faf2;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0 !important;
  padding: 12px 14px 14px !important;
  line-height: 1.8;
}

/* ===== 院内検査ページ ===== */
.facility-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
  clear: both;
}

.facility-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border: 0;
}

#hpb-main .facility-note-list {
  margin: 0 0 14px 0;
  padding: 0;
}

#hpb-main .facility-note-list li {
  margin: 0 0 6px 0;
  padding: 0 0 0 1.2em;
  background-image: none;
  line-height: 1.8;
  text-indent: -1.2em;
}

#hpb-main .facility-note-list li::before {
  content: "・";
}

/* ===== 最新のお知らせ整理 ===== */
.flow-text {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.7;
}

.flow-text span {
  display: block;
  margin: 0;
  padding: 0;
  text-indent: 0;
}

.news-digest {
  margin: 12px 13px 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d8e8d4;
  border-radius: 6px;
}

.news-digest h4 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #1b5e20;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
}

#hpb-main .news-digest ul {
  margin: 0;
  padding: 0;
}

#hpb-main .news-digest li {
  background-image: none;
  border-top: 1px solid #edf3eb;
  padding: 8px 0 8px 0;
}

#hpb-main .news-digest li:first-child {
  border-top: none;
}

.older-news {
  margin: 0 13px 14px;
  border: 1px solid #d8e8d4;
  border-radius: 6px;
  background: #fff;
}

.older-news h4 {
  margin: 0 !important;
  padding: 10px 14px;
  color: #1b5e20;
  border-bottom: 1px solid #d8e8d4;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
}

.older-news ul {
  padding-top: 0 !important;
}

.ubie-bottom-link {
  margin: 18px 13px 12px;
  text-align: center;
}

.ubie-bottom-link a {
  display: inline-block;
  max-width: 100%;
}

.ubie-bottom-link img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  border: 0;
}

/* ===== リッチフッター ===== */
#hpb-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 28px 0 0 !important;
  border-top: none !important;
  background: #f6f8f5;
}

.footer-rich {
  padding: 34px 24px 18px;
  background: #f6f8f5;
  color: #333333;
  border-top: 1px solid #d8e8d4;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto 16px;
}

.footer-col {
  flex: 1;
  min-width: 170px;
  line-height: 1.8;
}

.footer-col strong {
  display: block;
  color: #1b5e20;
  font-size: 0.9em;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  margin-bottom: 8px;
  border-bottom: 1px solid #d8e8d4;
}

.footer-col p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.88em;
  line-height: 1.7;
  color: #333333;
}

.footer-col a {
  color: #2f6f3a !important;
  text-decoration: none !important;
  display: block;
  font-size: 0.88em;
  line-height: 1.9;
}

.footer-col a:hover {
  color: #1b5e20 !important;
  text-decoration: underline !important;
}

.footer-tel-link {
  font-size: 1.15em !important;
  font-weight: bold !important;
  color: #1b5e20 !important;
  display: block !important;
  margin-top: 4px;
}

.footer-copyright {
  text-align: center;
  color: #66736a;
  font-size: 0.78em;
  border-top: 1px solid #d8e8d4;
  padding-top: 12px;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  line-height: 1.7;
}

/* ===== アコーディオン（施設基準等） ===== */
.accordion-wrap {
  margin: 12px 0 16px;
}

.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #f0f9ee;
  border: 1px solid #b2e2af;
  border-radius: 4px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: bold;
  color: #198219;
  box-sizing: border-box;
}

.accordion-toggle:hover {
  background: #e0f2e0;
}

.accordion-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-style: normal;
  font-size: 0.85em;
  opacity: 0.7;
}

.accordion-toggle.is-open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  border: 1px solid #b2e2af;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 14px 16px;
  background: #fafff9;
  font-size: 0.93em;
  line-height: 1.85;
  color: #333;
}

.accordion-body.is-open {
  display: block;
}

/* ===== お知らせバッジ ===== */
.news-badge {
  display: inline-block;
  font-size: 0.72em;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 10px;
  margin-right: 5px;
  vertical-align: middle;
  white-space: nowrap;
  color: #fff;
  background: #1565c0;
}

.news-badge.important {
  background: #c62828;
}

.news-badge.new {
  background: #e65100;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  #menu-toggle {
    display: none !important;
  }

  #mobile-nav {
    display: block !important;
    background: #198219 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #mobile-nav.is-open {
    display: block !important;
  }

  #mobile-nav ul {
    display: grid !important;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0;
    width: max-content;
    min-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  #mobile-nav li {
    background-image: none !important;
    padding: 0 !important;
  }

  #mobile-nav li a {
    padding: 9px 12px !important;
    font-size: 0.86em !important;
    line-height: 1.35 !important;
    white-space: nowrap;
  }

  .hpb-layoutset-01 #hpb-title.hpb-top-image {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 12px !important;
    display: block !important;
    background-image: none !important;
  }

  .hpb-layoutset-01 #hpb-title.hpb-top-image h2 {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    text-indent: 0 !important;
    background-image: none !important;
  }

  .top-hero-picture img {
    width: 100%;
    height: auto;
  }

  .visit-guide-panels {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0 16px;
  }

  .visit-guide-card {
    padding: 13px 12px 12px;
  }

  .visit-guide-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .feature-item {
    min-width: 0;
    font-size: 0.9em;
    padding: 9px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-digest,
  .older-news {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-grid {
    flex-direction: column;
    gap: 16px;
  }

  .footer-col {
    min-width: unset;
  }

  .footer-rich {
    padding: 24px 16px 14px;
  }

  #policy #flow.flow-steps li {
    gap: 10px;
    padding: 11px 12px !important;
  }

  .flow-step-number {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .faq-item summary {
    padding: 10px 36px 10px 12px;
  }

  .faq-item p {
    padding: 11px 12px 13px !important;
  }

  .facility-photo-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .facility-photo-grid img {
    max-height: none;
  }
}
