/* =========================================
   リセット & ベーススタイル
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "BIZ UDPGothic", sans-serif;
  color: #333;
  background-color: #fdf2f8;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 共通表示制御 */
.hidden { display: none !important; }

/* 背景画像 (imgタグ制御) */
img.bg-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
  z-index: -1; pointer-events: none;
}

/* 共通ユーティリティ (アイコン・画像) */
.icon-btn img, .search-clear img, .sns-icon img, .sns-arrow svg {
  width: 100%; height: 100%;
}
.icon-btn img, .search-clear img, .sns-icon img {
  object-fit: contain;
}
.icon-btn, .search-clear, .sns-icon, .sns-arrow {
  display: flex; align-items: center; justify-content: center;
}

/* =========================================
   ヘッダー
========================================= */
.site-header {
  background: #fff; border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}
.logo-area {
  display: flex; flex-direction: row; align-items: center;
  gap: 8px;
}
.logo-img {
  height: 24px;
  width: auto; object-fit: contain;
}
.logo-subtext {
  font-size: 11px;
  font-weight: bold; color: #666; display: block;
  line-height: 1.3;
}
.header-actions {
  display: flex; align-items: center;
  gap: 20px;
}
.icon-btn {
  width: 22px; height: 22px;
}

/* =========================================
   メインコンテンツ (共通枠)
========================================= */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
  overflow-x: hidden;
}

/* =========================================
   記事カード (TOPのグリッド・関連記事で共通)
========================================= */
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
}
.card-thumb {
  width: 100%;
  order: 1;
  flex-shrink: 0;
  position: relative;
  background: #f0f0f0;
  aspect-ratio: 1200 / 630;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-new {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e67a88;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
  padding: 4px 8px;
  border-bottom-right-radius: 6px;
  z-index: 10;
}
.card-body {
  width: 100%;
  order: 2;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.card-tags-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: auto;
  padding-bottom: 12px;
  pointer-events: none;
}
.card-tags-inner {
  display: flex;
  white-space: nowrap;
  gap: 6px;
}
.card-tag {
  font-size: 9px;
  color: #777;
  background: #f5f5f5;
  border: 1px solid transparent;
  padding: 2px 6px;
  border-radius: 4px;
}
.card-tag.hit {
  color: #e67a88;
  background: transparent;
  border-color: #e67a88;
  font-weight: bold;
}
.card-tags-fade {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}
.card-category-label {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  color: #d53f8c;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.card-date {
  font-size: 10px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.date-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
  opacity: 0.6;
}

/* =========================================
   CTAエリア & アコーディオン & 承認番号
========================================= */
.cta-area {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.btn-primary, .btn-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px;
  font-weight: bold;
  font-family: inherit;
  border-radius: 4px;
  background: #fff;
  transition: opacity 0.3s;
  position: relative;
}
.btn-primary:hover, .btn-secondary:hover { opacity: 0.8; }
.btn-primary { border: 2px solid #e67a88; color: #e67a88; }
.btn-primary::after {
  content: ""; position: absolute; right: 16px; width: 7px; height: 7px;
  border-top: 2px solid #e67a88; border-right: 2px solid #e67a88; transform: rotate(45deg);
}
.btn-secondary { border: 1px solid #ccc; color: #666; font-size: 12px; }
.notice-container {
  width: 100%; padding: 20px; background-color: #f9f9f9; border: 1px solid #eee; border-radius: 8px;
}
.notice-container .accordion-wrapper { width: 100%; margin-bottom: 0; }
.accordion-toggle { display: flex; justify-content: center; align-items: center; gap: 8px; position: relative; font-family: inherit; }
.accordion-icon { position: absolute; right: 12px; transition: transform 0.3s; }
.accordion-toggle.is-open .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-inner { padding: 16px; background: #fff; border: 1px solid #ccc; border-top: none; font-size: 12px; color: #666; line-height: 1.6; }
.note-list { list-style: none; margin-bottom: 12px; }
.note-list:last-child { margin-bottom: 0; }
.note-list li { padding-left: 1em; text-indent: -1em; margin-bottom: 6px; line-height: 1.6; }
.note-list li:last-child { margin-bottom: 0; }
.note-list li::before { content: "・"; }
.note-list.list-asterisk li::before { content: "※"; }
.medical-device-info { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #ccc; font-size: 12px; line-height: 1.7; color: #666; }
.medical-device-item { margin-bottom: 6px; }
.medical-device-item:last-child { margin-bottom: 0; }

/* =========================================
   SNSボタン
========================================= */
.sns-buttons-area { display: flex; gap: 10px; width: 100%; }
.btn-sns-brand {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  background-color: #e67a88; color: #fff; padding: 10px 4px; border-radius: 2px;
  transition: opacity 0.3s; overflow: hidden;
}
.btn-sns-brand:hover { opacity: 0.85; }
.sns-main { display: flex; align-items: center; gap: 6px; }
.sns-text { display: flex; flex-direction: column; line-height: 1.25; }
.sns-text span { font-size: 12px; font-weight: 500; color: #fff; letter-spacing: 0.5px; white-space: nowrap; font-family: inherit; }
.sns-icon { width: 28px; height: 28px; }
.sns-icon img { filter: brightness(0) invert(1); }
.sns-arrow { position: absolute; right: 8px; width: 14px; height: 14px; color: #fff; }

/* =========================================
   SP用追従ボタン (フローティング)
========================================= */
.sp-fixed-bottom {
  position: fixed; bottom: 12px; left: 12px; width: auto; padding: 0; background: transparent; z-index: 100; pointer-events: none;
}
.btn-sp-fixed {
  display: inline-block; padding: 10px 20px; background: #e67a88; color: #fff; text-align: center;
  font-family: inherit; font-weight: bold; font-size: 12px; border-radius: 30px;
  box-shadow: 0 4px 10px rgba(230, 122, 136, 0.4); pointer-events: auto;
}

/* =========================================
   フッター
========================================= */
.bottom-gfooter { background: #a9a9a9; color: #fff; padding: 40px 16px 100px; text-align: center; }
.bottom-gfooter a { color: #fff; transition: opacity 0.3s; }
.bottom-gfooter a:hover { opacity: 0.7; }
.bottom-gfooter__inner { max-width: 960px; margin: 0 auto; }
.bottom-gfooter__logos { margin-bottom: 24px; }

/* ---- 前回の修正：ロゴ画像のリンク範囲の修正 ---- */
.bottom-gfooter__logos .logo { text-align: center; margin-bottom: 8px; }
.bottom-gfooter__logos .logo a { display: inline-block; }
.bottom-gfooter__logos .logo img { max-width: 160px; width: 100%; height: auto; display: block; }
/* ------------------------------------------- */

.bottom-gfooter__logos .sincere-addr { font-size: 12px; font-weight: bold; }
.bottom-gfooter__auth { margin-bottom: 24px; text-align: center; }
.bottom-gfooter__auth-ttl { font-size: 13px; font-weight: bold; margin-bottom: 12px; }
.bottom-gfooter__sub-nav { border-top: 1px solid rgba(255, 255, 255, 0.5); padding-top: 24px; text-align: center; }

/* ---- 今回の修正：ナビとコピーライトの余白・行間調整 ---- */
.bottom-gfooter__misc-nav {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 16px; font-size: 12px; font-weight: bold;
  list-style: none; padding: 0; line-height: 1.5;
}
.bottom-gfooter__copyright {
  font-size: 10px; font-weight: normal; line-height: 1.5;
}

/* 以前はここに .bottom-gfooter__misc-nav が含まれており、margin: 0; で余白が消えていたため除外しました */
.bottom-gfooter__auth-list, .bottom-gfooter__logos ul, .sp_logos { list-style: none; padding: 0; margin: 0; }
/* ---------------------------------------------------- */

.bottom-gfooter__auth-list { font-size: 11px; line-height: 1.6; display: inline-block; text-align: left; }
.bottom-gfooter__auth-list li { margin-bottom: 4px; }
.bottom-gfooter__logos ul, .sp_logos { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 24px auto 32px; }
.bottom-gfooter__logos ul li, .sp_logos li { list-style: none; }
.bottom-gfooter__logos ul img, .sp_logos img { max-height: 50px; width: auto; display: block; }

/* =========================================
   レスポンシブ (共通)
========================================= */
@media (max-width: 767px) {
  .u-hide-sp { display: none !important; }
  .cta-area { padding: 20px 16px; }
  .notice-container { padding: 16px 12px; }
  .medical-device-info { font-size: 11px; line-height: 1.6; }
}
@media (min-width: 768px) {
  .u-hide-pc, .sp-fixed-bottom { display: none !important; }
  .header-inner { position: relative; justify-content: center; }
  .header-actions { position: absolute; right: 16px; gap: 24px; }
  .logo-area { gap: 12px; }
  .logo-img { height: 28px; }
  .logo-subtext { font-size: 12px; line-height: 1; }
  .icon-btn { width: 32px; height: 32px; }
  .card-body { padding: 16px; }
  .card-title { font-size: 14px; -webkit-line-clamp: 4; margin-bottom: 12px; }
  .card-tag { font-size: 10px; padding: 3px 8px; }
  .card-tags-wrapper { padding-bottom: 16px; }
  .card-category-label { font-size: 10px; padding: 2px 8px; }
  .card-date { font-size: 11px; }
  .date-icon { width: 12px; height: 12px; }
  .sns-buttons-area { gap: 16px; }
  .btn-sns-brand { padding: 14px 20px; }
  .sns-main { gap: 14px; }
  .sns-text span { font-size: 15px; }
  .sns-icon { width: 38px; height: 38px; }
  .bottom-gfooter { padding: 60px 16px 40px; }
  .bottom-gfooter__logos .logo img { max-width: 180px; }
}
