/* ============================================================
   メディカルエステ・クリニック カテゴリページ (cid51) 専用CSS
   プレフィックス: md-
   設置：FFFTPで /files/css/md_medical.css にアップロード
   読込：HTMLタグ挿入欄（head内）に以下を追加
     <link rel="stylesheet" href="/files/css/md_medical.css?v=20260706">
   ※他ページ(uk-/es-/ne-)とプレフィックスが異なるため共通化していません。
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.md-page { font-family: "游明朝", YuMincho, "Hiragino Mincho ProN", serif; color: #3a3a3c; background: #fff; max-width: 1100px; margin: 0 auto; line-height: 1.85; letter-spacing: 0.05em; font-size: 13.5px; }
.md-page a { text-decoration: none; color: inherit; }
.md-page a:hover { text-decoration: none; color: inherit; }

.md-hero { position: relative; width: 100%; height: 520px; overflow: hidden; background: linear-gradient(135deg, #2a7a6d 0%, #1e5e54 40%, #154a42 100%); }
.md-hero__img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.md-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.40) 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 56px; }
.md-hero__en { font-family: 'Book Antiqua', Georgia, serif; font-size: 11px; letter-spacing: 0.35em; color: rgba(255,255,255,0.65); text-transform: uppercase; margin-bottom: 14px; }
.md-hero__title { font-size: 34px; font-weight: normal; color: #fff; letter-spacing: 0.16em; text-shadow: 0 2px 12px rgba(0,0,0,0.3); margin: 0; }
.md-hero__tagline { font-size: 13px; color: rgba(255,255,255,0.78); letter-spacing: 0.18em; margin-top: 18px; padding: 6px 20px; border-top: 1px solid rgba(255,255,255,0.35); border-bottom: 1px solid rgba(255,255,255,0.35); }

.md-concept { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.md-concept__img { position: relative; min-height: 440px; background: linear-gradient(160deg, #a8d4cc 0%, #7ab8ac 100%); overflow: hidden; }
.md-concept__img-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.md-concept__text { background: #f3f8f7; padding: 64px 52px; display: flex; flex-direction: column; justify-content: center; }
.md-concept__en-title { font-family: 'Book Antiqua', Georgia, serif; font-size: 11px; letter-spacing: 0.32em; color: #2a7a6d; text-transform: uppercase; margin-bottom: 20px; }
.md-concept__ja-title { font-size: 22px; font-weight: normal; line-height: 1.6; color: #3a3a3c; margin-bottom: 28px; letter-spacing: 0.08em; }
.md-concept__body { font-size: 13px; color: #6b6b6d; line-height: 2.0; letter-spacing: 0.06em; }
.md-concept__accent-line { width: 36px; height: 1px; background: #5db8a9; margin: 24px 0; }

.md-section-title { font-family: 'Book Antiqua', Georgia, serif; font-size: 11px; letter-spacing: 0.34em; color: #2a7a6d; text-transform: uppercase; display: block; margin-bottom: 12px; text-align: center; }
.md-section-h2 { font-size: 20px; font-weight: normal; color: #3a3a3c; letter-spacing: 0.1em; margin-bottom: 48px; text-align: center; }

.md-features { background: #fff; padding: 72px 40px; text-align: center; }
.md-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 800px; margin: 0 auto; }
.md-feature-item { padding: 36px 24px; border: 1px solid #dce8e6; position: relative; }
.md-feature-item::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: #5db8a9; }
.md-feature-item__icon { width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 50%; background: #e8f4f2; display: flex; align-items: center; justify-content: center; }
.md-feature-item__icon svg { width: 24px; height: 24px; stroke: #2a7a6d; fill: none; stroke-width: 1.5; }
.md-feature-item__title { font-size: 14px; color: #3a3a3c; letter-spacing: 0.1em; margin-bottom: 10px; }
.md-feature-item__body { font-size: 12px; color: #7a7a7c; line-height: 1.9; }

.md-categories { padding: 72px 40px; background: #f3f8f7; }
.md-categories__header { text-align: center; margin-bottom: 24px; }
.md-cat-anchors { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.md-cat-anchors a { display: inline-block; font-size: 12px; letter-spacing: 0.06em; color: #2a7a6d; border: 1px solid #2a7a6d; padding: 6px 16px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.md-cat-anchors a:hover { background: #2a7a6d; color: #fff; }
.md-cat-grid { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #5db8a9 #dce8e6; }
.md-cat-grid::-webkit-scrollbar { height: 6px; }
.md-cat-grid::-webkit-scrollbar-track { background: #dce8e6; border-radius: 3px; }
.md-cat-grid::-webkit-scrollbar-thumb { background: #5db8a9; border-radius: 3px; }
.md-cat-item { flex: 0 0 260px; scroll-snap-align: start; display: block; text-decoration: none; color: inherit; background: #fff; overflow: hidden; transition: box-shadow 0.3s; }
.md-cat-item:hover { box-shadow: 0 4px 20px rgba(42,122,109,0.12); }
.md-cat-item__img-wrap { overflow: hidden; }
.md-cat-item__img { width: 100%; aspect-ratio: 1/1; background: linear-gradient(160deg, #a8d4cc 0%, #7ab8ac 100%); transition: transform 0.5s ease; display: flex; align-items: center; justify-content: center; font-size: 10px; color: rgba(255,255,255,0.35); }
.md-cat-item:hover .md-cat-item__img { transform: scale(1.04); }
.md-cat-item__info { padding: 18px 20px; }
.md-cat-item__label { font-family: 'Book Antiqua', Georgia, serif; font-size: 10px; letter-spacing: 0.2em; color: #2a7a6d; text-transform: uppercase; display: block; margin-bottom: 4px; }
.md-cat-item__name { font-size: 14px; color: #3a3a3c; letter-spacing: 0.08em; margin-bottom: 6px; }
.md-cat-item__desc { font-size: 11px; color: #8a8a8c; line-height: 1.7; }

/* ===== SCRUB BRANDS ===== */
.md-scrub-brands { padding: 72px 40px; background: #fff; }
.md-scrub-brands__header { text-align: center; margin-bottom: 40px; }
.md-scrub-brands__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; max-width: 1060px; margin: 0 auto; }
.md-scrub-brand-card { display: block; text-decoration: none; color: inherit; background: #f8faf9; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.md-scrub-brand-card:hover { box-shadow: 0 6px 24px rgba(42,122,109,0.13); transform: translateY(-3px); }
.md-scrub-brand-card__img { width: 100%; aspect-ratio: 210/297; background: #e8f0ee; overflow: hidden; }
.md-scrub-brand-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.md-scrub-brand-card:hover .md-scrub-brand-card__img img { transform: scale(1.04); }
.md-scrub-brand-card__body { padding: 16px 14px 20px; text-align: center; }
.md-scrub-brand-card__label { font-family: 'Book Antiqua', Georgia, serif; font-size: 10px; letter-spacing: 0.18em; color: #2a7a6d; text-transform: uppercase; display: block; margin-bottom: 4px; }
.md-scrub-brand-card__name { font-size: 14px; color: #3a3a3c; letter-spacing: 0.06em; line-height: 1.5; }
.md-scrub-brand-card__maker { font-size: 11px; color: #9a9a9c; margin-top: 4px; }

/* ===== NEW ARRIVALS SLIDER ===== */
.md-new-arrivals { padding: 72px 40px; background: #fff; }
.md-new-arrivals__header { text-align: center; margin-bottom: 40px; }
.md-new-arrivals__slider { display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.md-new-arrivals__slider::-webkit-scrollbar { height: 4px; }
.md-new-arrivals__slider::-webkit-scrollbar-thumb { background: #5db8a9; border-radius: 2px; }
.md-new-arrivals__card { flex: 0 0 180px; scroll-snap-align: start; text-decoration: none; color: inherit; transition: transform .2s; }
.md-new-arrivals__card:hover { transform: translateY(-4px); }
.md-new-arrivals__card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; background: #e8f0ee; }
.md-new-arrivals__card-name { font-size: 12px; margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.md-new-arrivals__card-price { font-size: 13px; font-weight: 600; color: #2a7a6d; margin-top: 4px; }
.md-new-arrivals__loading { text-align: center; padding: 40px; color: #999; font-size: 13px; }
.md-new-arrivals__more { text-align: center; margin-top: 32px; }
.md-new-arrivals__more a { display: inline-block; padding: 12px 40px; border: 1px solid #2a7a6d; color: #2a7a6d; background: #fff; font-size: 14px; font-weight: 600; border-radius: 6px; text-decoration: none; transition: all .3s; }
.md-new-arrivals__more a:hover { background: #2a7a6d; color: #fff; }

.md-faq { padding: 72px 40px; background: #f3f8f7; }
.md-faq .md-section-h2 { margin-bottom: 40px; }
.md-faq__list { max-width: 800px; margin: 0 auto; }
.md-faq__item { border-bottom: 1px solid #dce8e6; }
.md-faq__item:first-child { border-top: 1px solid #dce8e6; }
.md-faq__q { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-size: 14px; color: #3a3a3c; letter-spacing: 0.06em; line-height: 1.65; position: relative; font-family: "游明朝", YuMincho, serif; }
.md-faq__q::-webkit-details-marker { display: none; }
.md-faq__q::before { content: 'Q.'; font-family: 'Book Antiqua', Georgia, serif; font-size: 12px; color: #2a7a6d; margin-right: 10px; }
.md-faq__q::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: #2a7a6d; line-height: 1; }
.md-faq__item[open] .md-faq__q::after { content: '−'; }
.md-faq__a { padding: 4px 0 24px 28px; font-size: 13px; color: #6b6b6d; line-height: 2.0; }

.md-cta { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 36px 24px; background: #2a7a6d; flex-wrap: wrap; }
.md-cta__text { font-size: 14px; letter-spacing: 0.12em; color: rgba(255,255,255,0.88); font-family: "游明朝", YuMincho, serif; }
.md-cta__btn { display: inline-block; font-size: 12px; letter-spacing: 0.1em; color: #2a7a6d; background: #fff; border: 1px solid #fff; padding: 8px 24px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.md-cta__btn:hover { background: transparent; color: #fff; }

.md-jobs { padding: 64px 40px; background: #e6efed; }
.md-jobs__header { text-align: center; margin-bottom: 40px; }
.md-jobs__grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.md-job-card { flex: 0 0 200px; text-align: center; text-decoration: none; color: inherit; }
.md-job-card__img { width: 100%; aspect-ratio: 3/4; background: linear-gradient(160deg, #a8d4cc 0%, #7ab8ac 100%); display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(255,255,255,0.3); transition: opacity 0.2s; border-radius: 2px; overflow: hidden; position: relative; }
.md-job-card:hover .md-job-card__img { opacity: 0.82; }
.md-job-card.is-current .md-job-card__img { outline: 2px solid #2a7a6d; outline-offset: -2px; }
.md-job-card__badge { display: inline-block; background: #2a7a6d; color: #fff; font-size: 9px; padding: 2px 8px; margin-top: -14px; position: relative; z-index: 1; }
.md-job-card__name { margin-top: 10px; font-size: 13px; letter-spacing: 0.08em; color: #3a3a3c; }
.md-job-card__name small { display: block; font-size: 10px; color: #9a9a9c; font-family: 'Book Antiqua', Georgia, serif; }

.md-breadcrumb { padding: 12px 40px; font-size: 11px; color: #8a8a8c; letter-spacing: 0.04em; }
.md-breadcrumb a { color: #6b6b6d; text-decoration: none; }
.md-breadcrumb a:hover { text-decoration: underline; }
.md-breadcrumb__sep { margin: 0 8px; color: #c0c0c0; }

@media (max-width: 768px) {
  .md-hero { height: 380px; } .md-hero__title { font-size: 24px; }
  .md-concept { grid-template-columns: 1fr; } .md-concept__img { min-height: 280px; } .md-concept__text { padding: 40px 28px; }
  .md-features__grid { grid-template-columns: 1fr; gap: 16px; }
  .md-cat-grid { gap: 14px; }
  .md-cat-item { flex: 0 0 220px; }
  .md-cat-anchors { gap: 6px; }
  .md-cat-anchors a { font-size: 11px; padding: 5px 12px; }
  .md-scrub-brands { padding: 48px 20px; }
  .md-scrub-brands__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 14px; padding-bottom: 8px; }
  .md-scrub-brand-card { flex: 0 0 160px; scroll-snap-align: start; }
  .md-scrub-brand-card__body { padding: 12px 10px 16px; }
  .md-scrub-brand-card__name { font-size: 13px; }
  .md-new-arrivals { padding: 48px 20px; }
  .md-new-arrivals__card { flex: 0 0 150px; }
  .md-cta { flex-direction: column; gap: 12px; text-align: center; }
  .md-job-card { flex: 0 0 140px; }
}
