/*
Theme Name: てあてる 就労継続支援A型
Theme URI: https://shurou.teatel.net/
Author: atGunGun
Description: XDデザイン準拠の専用テーマ。固定9ページと5カテゴリのお知らせ、お問い合わせフォーム。
Version: 1.0.2
Requires PHP: 7.4
Text Domain: teatel-a
*/

/* Shared clinic navigation: hover on desktop, nested links in the SP menu. */
.nav_list1 .nav_exp1 {
  position: relative;
}

.nav_list1 .clinic_submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1;
  width: max-content;
  padding: 16px 0;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.2s, visibility 0.2s;
}

.nav_list1 .nav_exp1:hover .clinic_submenu,
.nav_list1 .nav_exp1:focus-within .clinic_submenu {
  opacity: 1;
  visibility: visible;
}

.nav_list1 .clinic_submenu li {
  margin: 0;
}

.nav_list1 .clinic_submenu a {
  padding: 12px 20px;
  font-size: 1.5rem;
  white-space: nowrap;
}

.nav_list1 .clinic_submenu a:hover,
.nav_list1 .clinic_submenu a:focus-visible {
  background: #F7F5F4;
  color: #EF7E3A;
}

.gnav__clinic_links {
  padding: 0 0 8px 16px;
}

.gnav__menu__item .gnav__clinic_links a {
  padding: 10px 0;
  font-size: 1.4rem;
  line-height: 1.6;
}

/* Keep the sidebar in the document flow and inside the company section. */
.page-company.website .company_page {
  overflow: visible;
}

@media screen and (min-width: 769px) {
  .page-company .page_side {
    position: sticky;
    top: calc(120px + var(--wp-admin--admin-bar--height, 0px));
    max-height: calc(100dvh - 140px - var(--wp-admin--admin-bar--height, 0px));
    overflow-y: auto;
  }
}

.news_detail .news_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.news_meta time {
  flex-shrink: 0;
}

.news_meta .category_dot {
  min-width: 0;
  overflow-wrap: anywhere;
}

.breadcrumb [aria-current] {
  min-width: 0;
  overflow-wrap: anywhere;
}

.clinic_map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 28vw, 400px);
  border: 0;
}

.page-clinic_abiko .reservation_links > .reservation_line {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  column-gap: 32px;
  width: 100%;
  min-height: 182px;
  padding: 24px clamp(24px, 6vw, 110px);
  font-size: clamp(2.6rem, 3.3vw, 4.6rem);
}

.page-clinic_abiko .reservation_line::before {
  position: static;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 128px;
  height: 128px;
}

.page-clinic_abiko .reservation_line span,
.page-clinic_abiko .reservation_line strong {
  grid-column: 2;
  min-width: 0;
}

.page-clinic_abiko .reservation_line strong {
  font-weight: inherit;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .page-clinic_abiko .reservation_links > .reservation_line {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 116px;
    padding: 16px 12px;
    font-size: clamp(1.8rem, 5.4vw, 2.6rem);
  }

  .page-clinic_abiko .reservation_line::before {
    width: 60px;
    height: 60px;
  }

  .page-clinic_abiko .reservation_line span {
    font-size: 1.4rem;
    line-height: 30px;
  }

  .page-exp2 .bridge_box,
  .page-consultation .bridge_box {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-exp2 .bridge_box h3,
  .page-consultation .bridge_box h3 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2em;
    padding: 16px 12px;
    font-size: 2.4rem;
  }

  .page-exp2 .bridge_box h3 > span,
  .page-consultation .bridge_box h3 > span {
    font-size: inherit;
    white-space: nowrap;
  }
}

.admin-bar header {
  top: 32px;
}

.wp_pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #EF7E3A;
  border-radius: 5px;
}

.wp_pagination .current {
  background: #EF7E3A;
  color: #fff;
}

.entry_content {
  overflow-wrap: anywhere;
}

.entry_content img {
  max-width: 100%;
  height: auto;
}

.entry_content h2, .entry_content h3 {
  margin: 32px 0 20px;
  font-weight: 700;
}

.entry_content ul {
  list-style: disc;
  padding-left: 1.5em;
}

.entry_content ol {
  list-style: decimal;
  padding-left: 1.5em;
}

.entry_content li {
  margin-bottom: 8px;
}

.news_empty {
  padding: 40px 0;
  line-height: 1.8;
}

.contact_honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact-send-status {
  margin-bottom: 20px;
}

#contact-send {
  margin-bottom: 24px;
}

.contact_button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media screen and (max-width: 782px) {
  .admin-bar header {
    top: 46px;
  }
}

.entry_content > p {
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.entry_content > figure,
.entry_content > ul,
.entry_content > ol {
  margin-bottom: 24px;
}

/* Privacy text scrolls inside its own document without narrowing the form. */
.contact_privacy {
  margin: 40px 0 24px;
}

.contact_privacy h3 {
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 700;
}

.contact_privacy_frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.contact_privacy_frame:focus-visible {
  outline: 3px solid #EF7E3A;
  outline-offset: 4px;
}

@media screen and (max-width: 768px) {
  .contact_privacy_frame {
    height: 280px;
  }
}

.contact_check {
  margin-bottom: 24px;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.contact_check input {
  margin-top: 4px;
}

.contact_check_text {
  min-width: 0;
  text-wrap: balance;
}

.contact_check_text .contact_badge {
  display: inline-block;
  margin-left: 8px;
  white-space: nowrap;
  vertical-align: middle;
}
