/*
Theme Name: SWELL CHILD - Your Doctor Media
Theme URI: https://your-doctor.jp/media/
Template: swell
Description: your-doctor.jp/media/ 用 SWELLカスタム子テーマ
Version: 1.1.0
*/

/* ===== ベーススタイル ===== */
body {
  background-color: #F5F4F0;
  color: #61564F;
}

a {
  color: #61564F;
}

/* ===== コンテンツエリア幅 ===== */
.l-container {
  max-width: calc(1200px + var(--swl-pad_container, 32px) * 2);
}

/* ===== SWELLデフォルトヘッダーを非表示 ===== */
.l-header:not(.yd-header) {
  display: none !important;
}
.l-fixHeader {
  display: none !important;
}

/* ===== 親サイト準拠ヘッダー ===== */
.yd-header {
  display: block !important;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-bar .yd-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.yd-header__inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
}

/* ロゴ */
.yd-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.yd-header__logo-img {
  height: 24px;
  width: auto;
}

/* PCナビ */
.yd-header__nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.yd-header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.yd-header__menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.yd-header__menu > li > a,
.yd-header__menu > li > span {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #61564F;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.25s;
}

.yd-header__menu > li > a:hover,
.yd-header__menu > li > span:hover {
  opacity: 0.7;
}

/* ドロップダウン */
.yd-has-dropdown {
  position: relative;
}

.yd-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 110;
}

.yd-has-dropdown:hover .yd-dropdown {
  opacity: 1;
  visibility: visible;
}

.yd-dropdown li {
  margin: 0;
}

.yd-dropdown li::before {
  content: none !important;
}

.yd-dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: #61564F;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.yd-dropdown a:hover {
  background-color: #F5F4F0;
}

/* SPボタン群 */
.yd-header__sp-btns {
  display: none; /* PCでは非表示 */
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.yd-sp-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.25s;
}

.yd-sp-btn:hover {
  opacity: 0.85;
}

.yd-sp-btn__text {
  display: inline;
}

.yd-sp-btn__icon {
  flex-shrink: 0;
}

/* SEARCH ボタン（アウトライン） */
.yd-sp-btn--search {
  background: #FFFFFF;
  color: #61564F;
  border: 1px solid #cbc5c0;
}

/* MENU ボタン（塗り・コーラルカラー） */
.yd-sp-btn--menu {
  background: #c87c6b;
  color: #FFFFFF;
  border: 1px solid #c87c6b;
}

/* SP対応 */
@media (max-width: 959px) {
  .yd-header__inner {
    height: 56px;
    padding: 0 12px;
  }

  .yd-header__logo-img {
    height: 20px;
  }

  .yd-header__nav {
    display: none; /* SPではナビ非表示（SWELLのSPメニューを使う） */
  }

  .yd-header__sp-btns {
    display: flex; /* SPでボタン群表示 */
  }
}

@media (max-width: 400px) {
  .yd-sp-btn {
    padding: 7px 10px;
    font-size: 10px;
    gap: 3px;
  }

  .yd-sp-btn__icon {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 1080px) and (min-width: 960px) {
  .yd-header__menu > li > a,
  .yd-header__menu > li > span {
    padding: 0 8px;
    font-size: 12px;
  }
}

/* ===== SWELLデフォルトのSPボタンを非表示 ===== */
.l-header__menuBtn,
.l-header__customBtn {
  display: none !important;
}

/* ===== 記事本文 ===== */
.post_content {
  font-size: 15px;
  line-height: 1.8;
}

/* h2 - 親サイト準拠 */
.post_content h2 {
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #61564F !important;
  border: none !important;
  border-bottom: 1px solid #DDDDDD !important;
  border-radius: 0 !important;
  padding: 0 0 14px 0 !important;
  margin: 80px 0 30px !important;
  background: none !important;
}

.post_content h2::before,
.post_content h2::after {
  content: none !important;
  display: none !important;
}

.post_content > h2 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* h3 - 親サイト準拠 */
.post_content h3 {
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #61564F !important;
  border: none !important;
  border-bottom: 1px solid #DDDDDD !important;
  border-radius: 0 !important;
  padding: 0 0 15px 0 !important;
  margin: 3em 0 25px !important;
  background: none !important;
}

.post_content h3::before,
.post_content h3::after {
  content: none !important;
  display: none !important;
}

/* テーブル */
.post_content td,
.post_content th {
  border-color: #DDDDDD;
}

/* ===== カスタムフッター ===== */
.yd-footer {
  background-color: #4E4B48 !important;
  color: #FFFFFF !important;
  padding: 60px 0 0;
}

.yd-footer a {
  color: #FFFFFF !important;
  text-decoration: none;
}

.yd-footer a:hover {
  opacity: 0.8;
}

.yd-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.yd-footer__top {
  display: flex;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.yd-footer__logo-area {
  flex: 0 0 300px;
}

.yd-footer__logo-img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.yd-footer__desc {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.8;
}

.yd-footer__links {
  display: flex;
  flex: 1;
  gap: 32px;
}

.yd-footer__link-col {
  flex: 1;
}

.yd-footer__link-heading {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.yd-footer__link-heading span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 4px;
}

.yd-footer__link-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yd-footer__link-col li {
  margin-bottom: 8px;
}

.yd-footer__link-col li::before {
  content: none !important;
}

.yd-footer__link-col li a {
  font-size: 13px;
  line-height: 1.6;
}

.yd-footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.yd-footer__bottom-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 0;
  margin: 0 0 16px;
}

.yd-footer__bottom-links li::before {
  content: none !important;
}

.yd-footer__bottom-links a {
  font-size: 12px;
  opacity: 0.8;
}

.yd-footer__copyright {
  font-size: 12px;
  opacity: 0.6;
  margin: 0;
}

.yd-footer .l-footer__inner,
.yd-footer .l-footer__foot {
  display: none;
}

/* フッター SP対応 */
@media (max-width: 959px) {
  .yd-footer__top {
    flex-direction: column;
    gap: 30px;
  }

  .yd-footer__logo-area {
    flex: none;
  }

  .yd-footer__links {
    flex-wrap: wrap;
    gap: 24px;
  }

  .yd-footer__link-col {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 599px) {
  .yd-footer {
    padding: 40px 0 0;
  }

  .yd-footer__inner {
    padding: 0 4vw;
  }

  .yd-footer__link-col {
    flex: 0 0 100%;
  }
}
