/* =========================================================
   Kyoto University Surgical Exchange Center
   New Top Page Modern CSS
   File: /top-modern/top-modern.css
========================================================= */

/* ------------------------------
   Root
------------------------------ */

:root {
  --tm-donation-bg: url("https://kyoto-u-sa.or.jp/main_site/wp-content/uploads/2026/05/donation2.png");
}

/* ------------------------------
   Base
------------------------------ */

.top-modern {
  --tm-blue: #00377f;
  --tm-blue-dark: #00265a;
  --tm-blue-light: #eaf3ff;
  --tm-accent: #e8532f;
  --tm-text: #10243f;
  --tm-muted: #6b7890;
  --tm-border: #d9e3f0;
  --tm-bg: #f5f8fc;
  --tm-white: #ffffff;
  --tm-shadow: 0 14px 34px rgba(0, 55, 127, 0.12);
  --tm-radius: 14px;

  color: var(--tm-text);
  background: #ffffff;
  font-family: inherit;
  line-height: 1.7;
}

.top-modern * {
  box-sizing: border-box;
}

.top-modern a {
  color: inherit;
  text-decoration: none;
}

.tm-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ------------------------------
   Buttons
------------------------------ */

.tm-btn,
.kusa-donation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  gap: 8px;
  text-decoration: none !important;
}

.tm-btn::after,
.kusa-donation-btn::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

.tm-btn-primary {
  color: #ffffff !important;
  background: var(--tm-blue);
  border: 1px solid var(--tm-blue);
}

.tm-btn-primary:hover {
  color: #ffffff !important;
  background: var(--tm-blue-dark);
}

.tm-btn-outline {
  color: var(--tm-blue) !important;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--tm-blue);
}

.tm-btn-outline:hover {
  color: #ffffff !important;
  background: var(--tm-blue);
}

.tm-btn-accent,
.kusa-donation-btn--primary {
  color: #ffffff !important;
  background: var(--tm-accent);
  border: 1px solid var(--tm-accent);
}

.tm-btn-accent:hover,
.kusa-donation-btn--primary:hover {
  color: #ffffff !important;
  opacity: 0.88;
}

.tm-btn-outline-dark,
.kusa-donation-btn--outline {
  color: var(--tm-blue) !important;
  background: #ffffff;
  border: 1px solid #b8c8dc;
}

.tm-btn-outline-dark:hover,
.kusa-donation-btn--outline:hover {
  color: #ffffff !important;
  background: var(--tm-blue);
  border-color: var(--tm-blue);
}

.tm-btn-white {
  color: var(--tm-blue) !important;
  background: #ffffff;
  border: 1px solid #ffffff;
}

.tm-btn-white:hover {
  color: var(--tm-blue-dark) !important;
  background: #f2f7ff;
}

.tm-btn-outline-white {
  color: #ffffff !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.tm-btn-outline-white:hover {
  color: var(--tm-blue) !important;
  background: #ffffff;
}

/* ------------------------------
   Hero / Slider
------------------------------ */

.tm-hero {
  position: relative;
  overflow: hidden;
  background: #eef5fd;
}

.tm-hero > rs-module-wrap,
.tm-hero > .rev_slider_wrapper {
  z-index: 1;
}

.tm-hero-fallback {
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.76) 42%, rgba(255,255,255,0.1) 100%),
    url("../images/hero-surgery.jpg") center/cover no-repeat;
}

.tm-hero-sub {
  margin: 0 0 18px;
  color: var(--tm-blue);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tm-hero h1 {
  margin: 0;
  color: var(--tm-blue);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tm-hero-text {
  width: min(620px, 100%);
  margin: 22px 0 30px;
  color: #1f3554;
  font-size: 16px;
  font-weight: 500;
}

.tm-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------
   Stats
------------------------------ */

.tm-stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  padding-bottom: 34px;
}

.tm-stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: linear-gradient(135deg, var(--tm-blue) 0%, #0050a8 100%);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 55, 127, 0.24);
}

.tm-stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 26px 28px;
  position: relative;
}

.tm-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 26px;
  width: 1px;
  background: rgba(255,255,255,0.26);
}

.tm-stat-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.92;
}

.tm-stat-label {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}

.tm-stat-number {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.tm-stat-number.is-counting {
  opacity: 0.95;
}

.tm-stat-number span {
  margin-left: 4px;
  font-size: 15px;
  font-weight: 700;
}

.tm-stat-note {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.84;
}

/* ------------------------------
   News / Seminars
------------------------------ */

.tm-news-area {
  padding: 0 0 42px;
  background: #ffffff;
}

.tm-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px;
}

.tm-panel {
  background: rgba(245, 248, 252, 0.92);
  border: 1px solid #edf2f8;
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 8px 28px rgba(20, 55, 95, 0.06);
}

.tm-section-head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.tm-section-head-between {
  justify-content: space-between;
  gap: 12px;
}

.tm-section-head h2,
.tm-title-center h2 {
  margin: 0;
  color: var(--tm-blue);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tm-title-center {
  text-align: center;
  margin-bottom: 24px;
}

.tm-title-center p {
  margin: 8px 0 0;
  color: var(--tm-muted);
  font-size: 15px;
}

.tm-small-link {
  color: var(--tm-blue) !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tm-small-link::after {
  content: " ›";
}

.tm-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--tm-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tm-tabs::-webkit-scrollbar {
  display: none;
}

.tm-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #44546a;
  padding: 10px 18px 11px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.tm-tab.is-active {
  color: #ffffff;
  background: var(--tm-blue);
  border-radius: 4px 4px 0 0;
}

.tm-tab-content {
  display: none;
}

.tm-tab-content.is-active {
  display: block;
}

.tm-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-news-item {
  padding: 0;
  border-bottom: 1px solid #e3eaf2;
}

.tm-news-item a {
  display: grid;
  grid-template-columns: 92px 96px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
  color: var(--tm-text);
}

.tm-news-date {
  color: #34445a;
  font-size: 14px;
  font-weight: 600;
}

.tm-news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 4px 8px;
  color: #ffffff;
  background: #597ca9;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.tm-news-title {
  display: block;
  overflow: visible;
  color: var(--tm-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  white-space: normal;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tm-news-arrow {
  color: var(--tm-blue);
  font-size: 22px;
  text-align: right;
}

.tm-news-item a:hover .tm-news-title {
  color: var(--tm-blue);
  text-decoration: underline;
}

.tm-no-posts {
  margin: 16px 0;
  color: var(--tm-muted);
  font-size: 14px;
}

.tm-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.tm-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 38px;
  padding: 0 22px;
  color: var(--tm-blue) !important;
  background: #ffffff;
  border: 1px solid #bdcce0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.tm-more-btn::after {
  content: " ›";
  margin-left: 14px;
  font-size: 18px;
}

.tm-more-btn:hover {
  color: #ffffff !important;
  background: var(--tm-blue);
}

/* News Category Colors */

.tm-news-cat-news {
  background: #5b78a0;
}

.tm-news-cat-seminar-info {
  background: #005bac;
}

.tm-news-cat-special-com {
  background: #d9902f;
}

.tm-news-cat-all-com,
.tm-news-cat-fem-com,
.tm-news-cat-tstudio,
.tm-news-cat-keep_surgeon,
.tm-news-cat-care-com,
.tm-news-cat-acade,
.tm-news-cat-pub-com {
  background: #2f8f83;
}

.tm-news-cat-member {
  background: #6a5fb8;
}

.tm-news-cat-ass-hp {
  background: #3f7fbd;
}

.tm-news-cat-url {
  background: #999999;
}

/* ------------------------------
   Seminar
------------------------------ */

.tm-seminar-list {
  display: grid;
  gap: 14px;
}

.tm-seminar-card {
  background: #ffffff;
  border: 1px solid #e4ecf5;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-seminar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 55, 127, 0.1);
}

.tm-seminar-card a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px;
  color: inherit;
  text-decoration: none !important;
}

.tm-seminar-date {
  width: 66px;
  height: 66px;
  border: 2px solid #d9e5f4;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--tm-blue);
  background: #ffffff;
  line-height: 1;
  flex-shrink: 0;
}

.tm-seminar-date span {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tm-seminar-date small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tm-seminar-body {
  min-width: 0;
}

.tm-seminar-body h3 {
  margin: 0 0 8px;
  color: var(--tm-blue);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.tm-seminar-body p {
  margin: 2px 0;
  color: #30445f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.tm-seminar-overview {
  display: none;
}

.tm-seminar-arrow {
  color: var(--tm-blue);
  font-size: 24px;
}

/* ------------------------------
   Seminar Pickup Slider
------------------------------ */

.tm-seminar-pickup {
  padding: 8px 0 40px;
  background: #ffffff;
}

.tm-pickup-head {
  margin-bottom: 16px;
}

.tm-pickup-head h2 {
  margin: 0;
  color: var(--tm-blue);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tm-pickup-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-pickup-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  width: 100%;
  scrollbar-width: none;
}

.tm-pickup-slider::-webkit-scrollbar {
  display: none;
}

.tm-pickup-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e1eaf4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 55, 127, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-pickup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 55, 127, 0.14);
}

.tm-pickup-card a {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.tm-pickup-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f2f6fb;
  overflow: hidden;
}

.tm-pickup-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.tm-pickup-card:hover .tm-pickup-image img {
  transform: scale(1.04);
}

.tm-pickup-body {
  display: none;
}

.tm-pickup-nav {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #d6e1ef;
  border-radius: 50%;
  background: #ffffff;
  color: var(--tm-blue);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 55, 127, 0.08);
  transition: all 0.2s ease;
}

.tm-pickup-nav:hover {
  color: #ffffff;
  background: var(--tm-blue);
  border-color: var(--tm-blue);
}

.tm-pickup-prev {
  margin-left: -4px;
}

.tm-pickup-next {
  margin-right: -4px;
}

/* ------------------------------
   About
------------------------------ */

.tm-about,
.kusa-about-section {
  padding: 36px 0 44px;
  background: #f7faff;
}

.kusa-about-section {
  padding-left: 20px;
  padding-right: 20px;
}

.kusa-about-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.kusa-about-heading {
  text-align: center;
  margin-bottom: 24px;
}

.kusa-about-heading h2 {
  margin: 0 0 8px;
  padding: 0;
  color: var(--tm-blue);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: none;
  background: none;
}

.kusa-about-heading p {
  margin: 0;
  color: var(--tm-muted);
  font-size: 15px;
  line-height: 1.8;
}

.tm-about-grid,
.kusa-about-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.tm-about-card,
.kusa-about-card {
  display: block;
  min-height: 180px;
  padding: 28px 18px 22px;
  background: #ffffff;
  border: 1px solid #e1eaf4;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 55, 127, 0.06);
  transition: all 0.2s ease;
}

.tm-about-card:hover,
.kusa-about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tm-shadow);
}

.tm-about-icon,
.kusa-about-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--tm-blue);
  background: #eef5ff;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  filter: grayscale(1);
}

.tm-about-card h3,
.kusa-about-card h3 {
  margin: 0 0 8px;
  padding: 0;
  color: var(--tm-blue);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
  border: none;
  background: none;
}

.tm-about-card p,
.kusa-about-card p {
  min-height: 72px;
  margin: 0 0 12px;
  color: #43546c;
  font-size: 13px;
  line-height: 1.65;
}

.tm-about-card span,
.kusa-about-card span {
  color: var(--tm-blue);
  font-size: 13px;
  font-weight: 800;
}

.tm-about-card span::after,
.kusa-about-card span::after {
  content: " ›";
  margin-left: 8px;
}

/* ------------------------------
   Donation
------------------------------ */

.tm-donation,
.kusa-donation-section {
  position: relative;
  overflow: hidden;
  padding: 38px 20px 42px;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,249,235,0.88)),
    var(--tm-donation-bg);
  background-position:
    center center,
    left bottom;
  background-size:
    auto,
    420px auto;
  background-repeat:
    no-repeat,
    repeat-x;
}

.tm-donation::before,
.tm-donation::after,
.kusa-donation-section::before,
.kusa-donation-section::after {
  content: none !important;
}

.tm-donation-inner,
.kusa-donation-inner,
.kusa-donation-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tm-donation h2,
.kusa-donation-title {
  margin: 0 0 10px;
  padding: 0;
  color: var(--tm-blue);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: none;
  background: none;
}

.tm-donation h3,
.kusa-donation-subtitle {
  margin: 20px 0 8px;
  padding: 0;
  color: #5a3a1c;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: none;
  background: none;
}

.tm-donation p,
.kusa-donation-lead,
.kusa-donation-text {
  margin: 0;
  color: #4d4a45;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 600;
}

.tm-donation-buttons,
.kusa-donation-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin: 24px auto 0;
}

.tm-donation-buttons .tm-btn,
.kusa-donation-btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 4px;
  white-space: nowrap;
}

.kusa-donation-kyoto,
.kusa-kyoto-mountain,
.kusa-kyoto-pagoda,
.kusa-kyoto-tower {
  display: none !important;
}

/* ------------------------------
   Supporters
------------------------------ */

.tm-supporters {
  padding: 34px 0 40px;
  background: #ffffff;
}

.tm-supporters .tm-title-center {
  margin-bottom: 20px;
}

.tm-supporters .tm-title-center h2 {
  margin: 0;
  color: var(--tm-blue);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tm-supporters .tm-title-center p {
  margin: 8px 0 0;
  color: var(--tm-muted);
  font-size: 14px;
  line-height: 1.8;
}

.tm-supporter-marquee {
  width: 100%;
  overflow: hidden;
}

.tm-supporter-marquee-row {
  width: 100%;
  overflow: hidden;
}

.tm-supporter-marquee-row + .tm-supporter-marquee-row {
  margin-top: 14px;
}

.tm-supporter-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.tm-supporter-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.tm-supporter-track--left {
  animation: tmSupporterMoveLeft 42s linear infinite;
}

.tm-supporter-track--right {
  animation: tmSupporterMoveRight 42s linear infinite;
}

.tm-supporter-marquee:hover .tm-supporter-track {
  animation-play-state: paused;
}

.tm-supporter-card {
  flex: 0 0 220px;
  width: 220px;
  height: 158px;
  display: block;
  padding: 0;
  background: #ffffff;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 55, 127, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tm-supporter-card:hover {
  transform: translateY(-3px);
  border-color: var(--tm-blue);
  box-shadow: 0 14px 30px rgba(0, 55, 127, 0.12);
}

.tm-supporter-image {
  width: 100%;
  height: 92px;
  display: block;
  background: #f2f6fb;
  overflow: hidden;
}

.tm-supporter-image img,
.tm-supporter-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tm-supporter-noimage {
  width: 100%;
  height: 92px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #f7faff;
  color: var(--tm-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.tm-supporter-name {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 10px;
  color: #203858;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.tm-supporter-empty {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px;
  color: var(--tm-muted);
  background: #f7faff;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

@keyframes tmSupporterMoveLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes tmSupporterMoveRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-supporter-track--left,
  .tm-supporter-track--right {
    animation: none;
  }
}

/* ------------------------------
   Bottom CTA
------------------------------ */

.tm-bottom-cta {
  padding: 0;
  background: #ffffff;
}

.tm-bottom-cta-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tm-blue) 0%, #0051ad 100%);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 55, 127, 0.2);
}

.tm-bottom-cta-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.tm-bottom-cta-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--tm-blue);
  background: #ffffff;
  border-radius: 50%;
  font-size: 34px;
}

.tm-bottom-cta h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tm-bottom-cta p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  opacity: 0.92;
}

.tm-bottom-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.tm-bottom-cta-buttons .tm-btn {
  min-width: 190px;
  white-space: nowrap;
}

/* ------------------------------
   Footer spacing
------------------------------ */

.top-modern + footer,
.top-modern ~ footer {
  margin-top: 42px;
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 1100px) {
  .tm-container {
    width: min(100% - 32px, 1000px);
  }

  .tm-stats-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-stat-item:nth-child(2)::after {
    display: none;
  }

  .tm-stat-item:nth-child(1),
  .tm-stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.22);
  }

  .tm-two-column {
    grid-template-columns: 1fr;
  }

  .tm-about-grid,
  .kusa-about-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .tm-container {
    width: calc(100% - 24px);
  }

  .tm-hero-fallback {
    min-height: 420px;
    align-items: flex-end;
    padding: 80px 0 40px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.96) 72%),
      url("../images/hero-surgery.jpg") center/cover no-repeat;
  }

  .tm-hero-sub {
    font-size: 13px;
  }

  .tm-hero h1 {
    font-size: 30px;
  }

  .tm-hero-text {
    font-size: 13px;
  }

  .tm-hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tm-btn,
  .kusa-donation-btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  .tm-stats-wrap {
    margin-top: -28px;
    padding-bottom: 24px;
  }

  .tm-stats-card {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 6px;
  }

  .tm-stat-item {
    min-height: 118px;
    padding: 18px 16px;
    gap: 12px;
  }

  .tm-stat-item::after {
    display: none;
  }

  .tm-stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.22);
  }

  .tm-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .tm-stat-label {
    font-size: 12px;
  }

  .tm-stat-number {
    font-size: 27px;
  }

  .tm-stat-number span {
    font-size: 11px;
  }

  .tm-stat-note {
    font-size: 10px;
  }

  .tm-news-area {
    padding-bottom: 24px;
  }

  .tm-panel {
    padding: 18px 14px;
  }

  .tm-section-head h2,
  .tm-title-center h2,
  .kusa-about-heading h2 {
    font-size: 20px;
  }

  .tm-title-center p,
  .kusa-about-heading p {
    font-size: 13px;
  }

  .tm-tab {
    padding: 9px 14px;
    font-size: 12px;
  }

  .tm-news-item a {
    grid-template-columns: 78px 72px minmax(0, 1fr) 14px;
    gap: 7px;
    min-height: 62px;
    padding: 9px 0;
  }

  .tm-news-date {
    font-size: 12px;
  }

  .tm-news-cat {
    min-width: 62px;
    font-size: 10px;
  }

  .tm-news-title {
    font-size: 12px;
    line-height: 1.55;
  }

  .tm-more-btn {
    width: 100%;
    min-width: 0;
  }

  .tm-seminar-card a {
    grid-template-columns: 62px minmax(0, 1fr) 14px;
    min-height: 92px;
    gap: 12px;
    padding: 14px;
  }

  .tm-seminar-date {
    width: 56px;
    height: 56px;
  }

  .tm-seminar-date span {
    font-size: 17px;
  }

  .tm-seminar-date small {
    margin-top: 5px;
    font-size: 10px;
  }

  .tm-seminar-body h3 {
    font-size: 15px;
  }

  .tm-seminar-body p {
    font-size: 11px;
  }

  .tm-seminar-pickup {
    padding: 4px 0 30px;
  }

  .tm-pickup-head h2 {
    font-size: 20px;
  }

  .tm-pickup-slider-wrap {
    gap: 8px;
  }

  .tm-pickup-card {
    flex-basis: 220px;
  }

  .tm-pickup-nav {
    display: none;
  }

  .tm-pickup-slider {
    padding-bottom: 10px;
    overflow-x: auto;
  }

  .tm-about,
  .kusa-about-section {
    padding: 26px 16px 30px;
  }

  .tm-about-grid,
  .kusa-about-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tm-about-card,
  .kusa-about-card {
    min-height: 138px;
    padding: 18px 12px;
  }

  .tm-about-icon,
  .kusa-about-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
    margin-bottom: 10px;
  }

  .tm-about-card h3,
  .kusa-about-card h3 {
    font-size: 14px;
  }

  .tm-about-card p,
  .kusa-about-card p {
    min-height: 0;
    font-size: 11px;
  }

  .tm-about-card span,
  .kusa-about-card span {
    font-size: 11px;
  }

  .tm-donation,
  .kusa-donation-section {
    padding: 30px 16px 34px;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,249,235,0.92)),
      var(--tm-donation-bg);
    background-position:
      center center,
      left bottom;
    background-size:
      auto,
      340px auto;
    background-repeat:
      no-repeat,
      repeat-x;
  }

  .tm-donation h2,
  .kusa-donation-title {
    font-size: 20px;
  }

  .tm-donation h3,
  .kusa-donation-subtitle {
    margin-top: 18px;
    font-size: 16px;
  }

  .tm-donation p,
  .kusa-donation-lead,
  .kusa-donation-text {
    font-size: 12px;
    line-height: 1.75;
  }

  .tm-donation p br,
  .kusa-donation-section p br {
    display: none;
  }

  .tm-donation-buttons,
  .kusa-donation-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
  }

  .tm-donation-buttons .tm-btn,
  .kusa-donation-btn {
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }

  .tm-supporters {
    padding: 30px 0 34px;
  }

  .tm-supporters .tm-title-center h2 {
    font-size: 20px;
  }

  .tm-supporters .tm-title-center p {
    font-size: 12px;
  }

  .tm-supporter-marquee-row + .tm-supporter-marquee-row {
    margin-top: 12px;
  }

  .tm-supporter-group {
    gap: 12px;
    padding-right: 12px;
  }

  .tm-supporter-card {
    flex-basis: 190px;
    width: 190px;
    height: 146px;
  }

  .tm-supporter-image,
  .tm-supporter-noimage {
    height: 84px;
  }

  .tm-supporter-name {
    height: 62px;
    padding: 8px 9px 9px;
    font-size: 12px;
  }

  .tm-supporter-track--left,
  .tm-supporter-track--right {
    animation-duration: 36s;
  }

  .tm-bottom-cta-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 26px 18px;
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
    text-align: center;
  }

  .tm-bottom-cta-text {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .tm-bottom-cta-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 24px;
  }

  .tm-bottom-cta h2 {
    font-size: 18px;
  }

  .tm-bottom-cta p {
    font-size: 12px;
  }

  .tm-bottom-cta-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tm-bottom-cta-buttons .tm-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .tm-news-item a {
    grid-template-columns: 1fr 64px 14px;
    grid-template-areas:
      "date cat arrow"
      "title title arrow";
    row-gap: 4px;
  }

  .tm-news-date {
    grid-area: date;
  }

  .tm-news-cat {
    grid-area: cat;
  }

  .tm-news-title {
    grid-area: title;
  }

  .tm-news-arrow {
    grid-area: arrow;
  }

  .tm-pickup-card {
    flex-basis: 200px;
  }
}
/* =====================================================
   Mobile：新着情報エリアの横はみ出し対策
===================================================== */

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .top-modern {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .top-modern .tm-news-area,
  .top-modern .tm-two-column,
  .top-modern .tm-panel,
  .top-modern .tm-news-panel,
  .top-modern .tm-tab-contents,
  .top-modern .tm-tab-content,
  .top-modern .tm-news-list,
  .top-modern .tm-news-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .top-modern .tm-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .top-modern .tm-tab {
    flex: 0 0 auto;
  }

  .top-modern .tm-news-item a {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 72px 66px minmax(0, 1fr) 12px;
    gap: 6px;
  }

  .top-modern .tm-news-date,
  .top-modern .tm-news-cat,
  .top-modern .tm-news-title,
  .top-modern .tm-news-arrow {
    min-width: 0;
  }

  .top-modern .tm-news-cat {
    width: 66px;
    min-width: 66px;
    padding: 4px 4px;
    font-size: 10px;
    white-space: nowrap;
  }

  .top-modern .tm-news-title {
    display: block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}