/* =========================================================
   山﨑タクシー 終電後・深夜長距離送迎
   共通部品は medical-study-transport.css。
   本ファイルは Cocoon 非表示・夜間デザイン・固有レイアウト。
   ========================================================= */

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

body.yt-wp-late-night #main,
body.yt-wp-late-night .main,
body.yt-wp-late-night .content,
body.yt-wp-late-night .article,
body.yt-wp-late-night .entry-content,
body.yt-wp-late-night #container,
body.yt-wp-late-night .container,
body.yt-wp-late-night #content,
body.yt-wp-late-night .content-in,
body.yt-wp-late-night .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-late-night {
  background: #070b16;
  overflow-x: hidden;
}

.yt-late-night {
  --ytn-ink: #121826;
  --ytn-body: #2a3140;
  --ytn-green: #c9a962;
  --ytn-green-deep: #9a7a3c;
  --ytn-fairway: #101828;
  --ytn-gold: #c9a962;
  --ytn-line: rgba(201, 169, 98, 0.28);
  color: var(--ytn-body);
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: #f4f6fa;
}

.yt-late-night .ytm-container {
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
}

.yt-late-night .ytm-nav-cta,
.yt-late-night .ytm-btn-primary {
  background: linear-gradient(180deg, #d8bc78 0%, #b8924a 55%, #9a7a3c 100%) !important;
  border-color: #9a7a3c !important;
  color: #0b1220 !important;
  font-weight: 700;
}

.yt-late-night .ytm-cta-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.yt-late-night .ytm-btn {
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 148px;
  flex: 1 1 148px;
  max-width: 220px;
}

.yt-late-night .ytm-section {
  padding: 52px 0;
}

.ytn-head {
  margin: 0 0 24px;
}

.ytn-kicker {
  margin: 0 0 8px;
  color: var(--ytn-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ytn-head h2,
.ytn-capacity-copy h2,
.ytn-corp-card h2 {
  margin: 0 0 12px;
  color: var(--ytn-ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.ytn-head p:not(.ytn-kicker),
.ytn-capacity-copy p:not(.ytn-kicker),
.ytn-corp-card p:not(.ytn-kicker),
.ytn-point p,
.ytn-scene p,
.ytn-fare-notes,
.ytn-check li {
  color: var(--ytn-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.01em;
  opacity: 1;
}

/* Hero: dark overlay on fairway so white type stays readable */
.ytn-hero {
  position: relative;
  color: #fff;
  min-height: 520px;
  overflow: hidden;
}

.ytn-hero-stage {
  position: absolute;
  inset: 0;
}

.ytn-hero-fairway,
.ytn-hero-night {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(201, 169, 98, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(40, 70, 140, 0.28), transparent 50%),
    linear-gradient(180deg, #05080f 0%, #0b1220 42%, #121a2c 78%, #070b16 100%);
}

.ytn-hero-fairway::after,
.ytn-hero-night::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.55), transparent);
  box-shadow: 0 0 24px rgba(201, 169, 98, 0.35);
}

.ytn-hero-course,
.ytn-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 45%;
  opacity: 0.42;
}

.ytn-hero-car {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46vw, 380px);
  height: 72%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.88) brightness(0.92);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.ytn-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.78) 36%, rgba(5, 8, 15, 0.28) 64%, rgba(5, 8, 15, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.08) 0%, rgba(5, 8, 15, 0.5) 100%);
}

.ytn-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 48px 0 56px;
}

.ytn-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 169, 98, 0.7);
  border-radius: 999px;
  color: #e8d5a3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(7, 11, 22, 0.45);
}

.ytn-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.ytn-hero-lead {
  margin: 0 0 24px;
  color: #f3f3f0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.01em;
  opacity: 1;
}

.ytn-hero .ytm-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.22);
}

/* 5 points */
.ytn-highlights {
  background: #eef3ea;
}

.ytn-point-grid {
  display: grid;
  gap: 12px;
}

.ytn-point {
  background: #fff;
  border: 1px solid var(--ytn-line);
  border-radius: 14px;
  padding: 20px 18px;
}

.ytn-point h2 {
  margin: 0 0 8px;
  color: var(--ytn-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Fare */
.ytn-fare {
  background: #fff;
}

.ytn-fare-grid {
  display: grid;
  gap: 14px;
}

.ytn-fare-card {
  background: #f7f9f5;
  border: 2px solid var(--ytn-green);
  border-radius: 16px;
  padding: 28px 22px;
}

.ytn-fare-card--featured {
  background: var(--ytn-green-deep);
  border-color: var(--ytn-green-deep);
  color: #fff;
}

.ytn-fare-label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ytn-ink);
}

.ytn-fare-card--featured .ytn-fare-label {
  color: #edd9a0;
}

.ytn-fare-price {
  margin: 0 0 10px;
  color: var(--ytn-ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.ytn-fare-card--featured .ytn-fare-price {
  color: #fff;
}

.ytn-fare-amount {
  font-size: 1.12em;
}

.ytn-fare-yen {
  font-size: 0.72em;
  margin-left: 4px;
  font-weight: 700;
}

.ytn-fare-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ytn-ink);
}

.ytn-fare-card--featured .ytn-fare-sub {
  color: #fff;
}

.ytn-fare-notes {
  margin: 20px 0 0;
  padding: 0 0 0 1.2em;
}

.ytn-fare-notes li + li {
  margin-top: 6px;
}

/* 2 people */
.ytn-capacity {
  background: #eef3ea;
}

.ytn-capacity-card {
  display: grid;
  gap: 20px;
  background: #fff;
  border: 2px solid var(--ytn-green);
  border-radius: 16px;
  padding: 24px 20px;
}

.ytn-capacity-note {
  padding: 12px 14px;
  background: #f3f6f0;
  border-radius: 10px;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.ytn-capacity-media img,
.ytn-alphard-grid img,
.ytn-corp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ytn-capacity-media,
.ytn-corp-media {
  overflow: hidden;
  border-radius: 12px;
  min-height: 200px;
  background: #1a241c;
}

.ytn-slot {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 16px;
  color: #fff;
  font-weight: 700;
  background: #2a4534;
}

/* Comfort */
.ytn-comfort {
  background: #fff;
}

.ytn-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ytn-check li {
  position: relative;
  padding: 16px 16px 16px 48px;
  background: #f7f9f5;
  border: 1px solid var(--ytn-line);
  border-radius: 12px;
  font-weight: 600;
}

.ytn-check li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ytn-green);
  box-shadow: inset 0 0 0 3px #fff;
}

/* Scenes */
.ytn-scenes {
  background: #eef3ea;
}

.ytn-scene-grid {
  display: grid;
  gap: 12px;
}

.ytn-scene {
  background: #fff;
  border: 1px solid var(--ytn-line);
  border-radius: 14px;
  padding: 20px 18px;
}

.ytn-scene h3 {
  margin: 0 0 12px;
  color: var(--ytn-ink);
  font-size: 18px;
  font-weight: 700;
}

.ytn-scene ol {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.ytn-scene li {
  position: relative;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--ytn-line);
  background: #f7f9f5;
  font-size: 16px;
  font-weight: 700;
  color: var(--ytn-ink);
}

.ytn-scene li + li {
  border-top: 0;
}

.ytn-scene li:first-child {
  border-radius: 8px 8px 0 0;
}

.ytn-scene li:last-child {
  border-radius: 0 0 8px 8px;
}

.ytn-scene li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--ytn-green);
}

/* Alphard */
.ytn-alphard {
  background: #fff;
}

.ytn-alphard-grid {
  display: grid;
  gap: 12px;
}

.ytn-alphard-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #121826;
}

.ytn-alphard-grid img {
  height: 220px;
}

.ytn-alphard-grid figcaption {
  padding: 12px 14px 14px;
  background: #fff;
  color: var(--ytn-ink);
  font-size: 15px;
  font-weight: 700;
}

.ytn-center {
  margin: 24px 0 0;
  text-align: center;
}

.ytn-btn-dark {
  color: var(--ytn-ink) !important;
  border: 2px solid var(--ytn-green-deep) !important;
  background: #fff !important;
}

/* Corporate */
.ytn-corp {
  background: #eef3ea;
}

.ytn-corp-card {
  display: grid;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--ytn-line);
  border-radius: 16px;
  padding: 24px 20px;
}

.ytn-corp-list {
  margin: 0 0 16px;
  padding: 0 0 0 1.2em;
  color: var(--ytn-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.yt-late-night .ytm-bottom-cta {
  background: linear-gradient(180deg, #070b16 0%, #101018 100%);
}

.yt-late-night .ytm-bottom-cta .ytm-btn-primary {
  background: linear-gradient(180deg, #d8bc78 0%, #b8924a 55%, #9a7a3c 100%) !important;
  border-color: #9a7a3c !important;
  color: #0b1220 !important;
}

.yt-late-night .ytm-bottom-cta .ytm-btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(0, 0, 0, 0.25) !important;
}

.yt-late-night .ytm-bottom-cta h2 {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.yt-late-night .ytm-bottom-cta p {
  color: #f0f0ec;
  font-size: 16px;
  font-weight: 500;
  opacity: 1;
}

.yt-late-night .yt-ci-card,
.yt-late-night .yt-ci-title,
.yt-late-night .yt-ci-heading,
.yt-late-night .yt-ci-block p,
.yt-late-night .yt-ci-reg-no {
  color: var(--ytn-ink);
}

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

  .yt-late-night .ytm-btn {
    min-height: 52px;
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }

  .ytn-hero-car {
    width: 58vw;
    opacity: 0.72;
  }
}

@media (min-width: 700px) {
  .ytn-hero-inner {
    margin-left: max(24px, calc((100% - 1080px) / 2));
    padding: 72px 0 80px;
  }

  .ytn-point-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ytn-fare-grid,
  .ytn-capacity-card,
  .ytn-corp-card,
  .ytn-scene-grid,
  .ytn-alphard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .ytn-point-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ytn-scene-grid,
  .ytn-alphard-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .ytn-hero-car {
    width: min(42vw, 400px);
    right: 0;
  }
}

.ytn-en {
  margin: 0 0 10px;
  color: rgba(232, 213, 163, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ytn-btn-phone {
  background: linear-gradient(180deg, #d8bc78 0%, #b8924a 55%, #9a7a3c 100%) !important;
  border: 0 !important;
  color: #0b1220 !important;
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  max-width: 280px;
  box-shadow: 0 10px 24px rgba(154, 122, 60, 0.35);
}

.ytn-phone-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ytn-phone-num {
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 800;
  line-height: 1.2;
}

.ytn-kamata,
.ytn-queue,
.ytn-fare,
.ytn-biz {
  background: #101828;
  color: #fff;
}

.ytn-kamata h2,
.ytn-kamata p,
.ytn-kamata .ytn-copy p,
.ytn-queue h2,
.ytn-queue p,
.ytn-fare h2,
.ytn-fare p,
.ytn-fare li,
.ytn-biz h2,
.ytn-biz p {
  color: #f4f6fa;
}

.ytn-kamata-grid,
.ytn-queue-card,
.ytn-alphard-grid {
  display: grid;
  gap: 22px;
}

.ytn-routes-example,
.ytn-queue-points,
.ytn-fare-notes {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ytn-routes-example li,
.ytn-queue-points li {
  margin: 0 0 8px;
  padding: 12px 12px 12px 18px;
  border-left: 2px solid var(--ytn-gold);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.ytn-kamata-media {
  overflow: hidden;
  border-radius: 16px;
  background: #0a1020;
  min-height: 220px;
  aspect-ratio: 16 / 11;
}

.ytn-kamata-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ytn-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  height: 100%;
  padding: 20px;
  color: rgba(232, 213, 163, 0.78);
  text-align: center;
  letter-spacing: 0.06em;
  font-size: 13px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(201, 169, 98, 0.12), transparent 60%),
    linear-gradient(180deg, #121a2c 0%, #070b16 100%);
}

.ytn-cta-band {
  margin-top: 28px;
}

.ytn-dir-grid,
.ytn-case-grid,
.ytn-scene-grid,
.ytn-photo-grid,
.ytn-alphard-feats {
  display: grid;
  gap: 12px;
}

.ytn-dir,
.ytn-case,
.ytn-scene,
.ytn-book-card {
  background: #fff;
  border: 1px solid var(--ytn-line);
  border-radius: 16px;
  padding: 20px 18px;
}

.ytn-dir-meta {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ytn-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ytn-dir h3,
.ytn-case h3,
.ytn-scene h3,
.ytn-feat h3 {
  margin: 0 0 8px;
  color: var(--ytn-ink);
}

.ytn-feat {
  background: #f4f6fa;
  border-radius: 12px;
  padding: 14px 16px;
}

.ytn-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #121826;
}

.ytn-photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ytn-photo-grid figcaption {
  padding: 12px 14px 14px;
  background: #fff;
  color: var(--ytn-ink);
  font-size: 15px;
  font-weight: 700;
}

.ytn-scene ol {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.ytn-scene ol li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-weight: 700;
  color: var(--ytn-ink);
}

.ytn-scene ol li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ytn-gold);
}

.ytn-scene-link,
.ytn-fare a {
  color: #e8d5a3;
  font-weight: 700;
}

.ytn-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ytn-related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: #fff;
  color: var(--ytn-ink);
  font-size: 14px;
  font-weight: 700;
}

.ytn-btn-on-light {
  color: #0b1220 !important;
  border-color: rgba(11, 18, 32, 0.28) !important;
}

.yt-late-night .ytm-bottom-cta {
  background: linear-gradient(180deg, #070b16 0%, #101018 100%);
}

@media (max-width: 420px) {
  .ytn-btn-phone {
    max-width: none;
  }
}

@media (min-width: 700px) {
  .ytn-kamata-grid,
  .ytn-queue-card,
  .ytn-alphard-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }

  .ytn-dir-grid,
  .ytn-case-grid,
  .ytn-scene-grid,
  .ytn-photo-grid,
  .ytn-alphard-feats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .ytn-dir-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ytn-case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ytn-scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
