/* =========================================================
   山﨑タクシー 医療関連勉強会送迎ページ専用
   ※ style.css は変更しない。このファイルのみで完結。
   本ページ（body.yt-wp-medical）でのみ enqueue される。
   ========================================================= */

body.yt-wp-medical #sidebar,
body.yt-wp-medical .sidebar,
body.yt-wp-medical .breadcrumb,
body.yt-wp-medical .article-header .entry-title,
body.yt-wp-medical .eye-catch,
body.yt-wp-medical #header,
body.yt-wp-medical .header,
body.yt-wp-medical .navi,
body.yt-wp-medical .mobile-menu-buttons,
body.yt-wp-medical #footer {
  display: none !important;
}

body.yt-wp-medical #main,
body.yt-wp-medical .main,
body.yt-wp-medical .content,
body.yt-wp-medical .article,
body.yt-wp-medical .entry-content,
body.yt-wp-medical #container,
body.yt-wp-medical .container,
body.yt-wp-medical #content,
body.yt-wp-medical .content-in,
body.yt-wp-medical .wrap {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.yt-wp-medical {
  background: #f7f7f5;
}

.yt-medical {
  --ytm-bg: #f7f7f5;
  --ytm-bg-soft: #efefed;
  --ytm-ink: #141414;
  --ytm-charcoal: #2a2a2a;
  --ytm-muted: #5c5c5c;
  --ytm-line: #d8d8d4;
  --ytm-white: #ffffff;
  --ytm-gold: #b8964a;
  --ytm-gold-soft: #d4bc7a;
  --ytm-gold-dark: #8a6e32;
  --ytm-navy: #0b1220;
  --ytm-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --ytm-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --ytm-max: 1120px;
  --ytm-radius: 14px;
  box-sizing: border-box;
  margin: 0;
  color: var(--ytm-ink);
  background: var(--ytm-bg);
  font-family: var(--ytm-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.yt-medical *,
.yt-medical *::before,
.yt-medical *::after {
  box-sizing: border-box;
}

.yt-medical img {
  max-width: 100%;
  height: auto;
  display: block;
}

.yt-medical a {
  color: inherit;
  text-decoration: none;
}

.ytm-container {
  width: min(100% - 32px, var(--ytm-max));
  margin: 0 auto;
}

/* Header */
.ytm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ytm-header-inner {
  width: min(100% - 24px, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.ytm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ytm-logo img {
  width: 40px;
  height: 40px;
}

.ytm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}

.ytm-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  white-space: nowrap;
}

.ytm-nav a:hover {
  color: var(--ytm-gold-soft);
}

.ytm-nav-cta {
  padding: 8px 14px !important;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8bc78 0%, #b8924a 55%, #9a7a3c 100%);
  color: #fff !important;
  font-weight: 700;
}

/* Hero — mobile first: copy, then photos stacked */
.ytm-hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "left"
    "right";
  background: var(--ytm-navy);
  color: #fff;
}

.ytm-hero-photo--left {
  grid-area: left;
}

.ytm-hero-copy {
  grid-area: copy;
}

.ytm-hero-photo--right {
  grid-area: right;
}

.ytm-hero-photo {
  position: relative;
  overflow: hidden;
  background: #121826;
  min-height: 220px;
}

.ytm-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ytm-hero-photo--left {
  aspect-ratio: 16 / 10;
}

.ytm-hero-photo--left img {
  object-position: center 38%;
}

.ytm-hero-photo--right {
  aspect-ratio: 4 / 5;
}

.ytm-hero-photo--right img {
  object-position: 16% 52%;
}

.ytm-hero-copy {
  padding: 28px 18px 32px;
  width: min(100%, 640px);
  margin: 0 auto;
}

.ytm-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ytm-gold-soft);
  font-weight: 600;
}

.ytm-eyebrow-on-dark {
  color: var(--ytm-gold-soft);
}

.ytm-kicker {
  margin: 0 0 12px;
  font-family: var(--ytm-serif);
  font-size: clamp(18px, 5.4vw, 28px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #fff;
}

.ytm-hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--ytm-serif);
  font-size: clamp(24px, 7vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ytm-lead {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.ytm-meta {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.ytm-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ytm-cta-row--center {
  align-items: stretch;
}

.ytm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-align: center;
}

.ytm-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.ytm-btn-primary {
  background: linear-gradient(180deg, #d8bc78 0%, #b8924a 55%, #9a7a3c 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(154, 122, 60, 0.28);
}

.ytm-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.ytm-btn-line {
  background: linear-gradient(180deg, #2ad366 0%, #06c755 55%, #05a848 100%);
  color: #fff;
}

.ytm-btn-lg {
  min-height: 54px;
  font-size: 16px;
}

.ytm-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  height: 100%;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #1c2433 0%, #0b1220 55%, #2a2418 100%);
}

@media (min-width: 560px) {
  .ytm-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ytm-cta-row--center {
    justify-content: center;
  }

  .ytm-btn {
    min-width: 180px;
  }
}

@media (min-width: 900px) {
  .ytm-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "left copy right";
    align-items: stretch;
    min-height: 560px;
  }

  .ytm-hero-photo {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .ytm-hero-photo--left,
  .ytm-hero-photo--right {
    aspect-ratio: auto;
  }

  .ytm-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 32px;
    margin: 0;
    width: auto;
  }
}

/* Sections */
.ytm-section {
  padding: 48px 0;
}

.ytm-section-head {
  margin-bottom: 24px;
}

.ytm-section-head h2 {
  margin: 0 0 10px;
  font-family: var(--ytm-serif);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ytm-section-head p {
  margin: 0;
  color: var(--ytm-muted);
  font-size: 14.5px;
}

.ytm-section-head .ytm-eyebrow {
  color: var(--ytm-gold-dark);
}

/* Features */
.ytm-features {
  background: var(--ytm-white);
}

.ytm-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ytm-feature {
  background: var(--ytm-bg);
  border: 1px solid var(--ytm-line);
  border-radius: 12px;
  padding: 18px 16px;
}

.ytm-feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(184, 150, 74, 0.12);
  color: var(--ytm-gold-dark);
}

.ytm-feature-ico svg {
  width: 22px;
  height: 22px;
}

.ytm-feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--ytm-serif);
  line-height: 1.45;
}

.ytm-feature p {
  margin: 0;
  color: var(--ytm-muted);
  font-size: 14px;
}

@media (min-width: 700px) {
  .ytm-feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (min-width: 1100px) {
  .ytm-feature-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Value band */
.ytm-value {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.ytm-value-inner {
  max-width: 760px;
}

.ytm-value h2 {
  margin: 0 0 14px;
  font-family: var(--ytm-serif);
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ytm-value p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

/* Recommend */
.ytm-recommend {
  background: var(--ytm-bg-soft);
}

.ytm-recommend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ytm-recommend-list li {
  position: relative;
  padding: 16px 16px 16px 48px;
  background: #fff;
  border: 1px solid var(--ytm-line);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.ytm-recommend-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #d8bc78, #9a7a3c) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px var(--ytm-gold);
}

@media (min-width: 800px) {
  .ytm-recommend-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Gallery */
.ytm-gallery {
  background: #fff;
}

.ytm-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.ytm-gallery-item {
  margin: 0;
  flex: 0 0 min(84vw, 320px);
  scroll-snap-align: start;
}

.ytm-photo {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  width: 100%;
  height: 100%;
}

.ytm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ytm-photo--gallery {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: #0f172a;
}

.ytm-photo--gallery img {
  object-fit: cover;
  object-position: center 48%;
}

@media (max-width: 767px) {
  .ytm-photo--gallery img {
    object-position: 20% 48%;
  }
}

@media (min-width: 768px) {
  .ytm-gallery-track {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    overflow: visible;
    gap: 16px;
  }

  .ytm-gallery-item {
    flex: none;
  }
}

/* Bottom CTA */
.ytm-bottom-cta {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.94), rgba(11, 18, 32, 0.98));
  color: #fff;
}

.ytm-bottom-cta-inner {
  text-align: center;
  max-width: 720px;
}

.ytm-bottom-cta h2 {
  margin: 0 0 12px;
  font-family: var(--ytm-serif);
  font-size: clamp(22px, 5vw, 32px);
}

.ytm-bottom-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.ytm-footer {
  background: #05080f;
  color: rgba(255, 255, 255, 0.78);
  padding: 22px 0 28px;
}

.ytm-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.ytm-footer strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.ytm-footer a:hover {
  color: var(--ytm-gold-soft);
}

@media (max-width: 420px) {
  .ytm-nav a:not(.ytm-nav-cta) {
    display: none;
  }

  .ytm-hero-copy {
    padding: 24px 16px 28px;
  }

  .ytm-btn {
    min-height: 52px;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .ytm-section {
    padding: 64px 0;
  }
}
