/*

1. Add your custom Css styles below
2. Place this code in your template:

 <link href="css/custom.css" rel="stylesheet">

*/

/* =========================================================
   Shared UI components for TeamFile pages
   Prefix policy:
   - ui-*        : reusable presentation components
   - ui-logo-*   : per-logo visual tweaks
   These rules intentionally avoid broad selectors such as
   .table, .container, section, or .btn by themselves.
========================================================= */

/* Logo badge grid */
.ui-logo-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ui-logo-badge-grid .ui-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 126px;
  padding: 18px 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: var(--ui-logo-bg, #ffffff);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ui-logo-badge-grid .ui-logo-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.10);
}

.ui-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ui-logo-badge img {
  display: block;
  width: auto;
  max-width: 82%;
  max-height: 54px;
  object-fit: contain;
}

.ui-logo-komatsu { --ui-logo-bg: #f7f8fa; }
.ui-logo-toyota { --ui-logo-bg: #ffffff; }
.ui-logo-ntt { --ui-logo-bg: #f7fbff; }
.ui-logo-ihi { --ui-logo-bg: #ffffff; }
.ui-logo-panasonic { --ui-logo-bg: #f7f9ff; }
.ui-logo-sony { --ui-logo-bg: #f8f8f8; }
.ui-logo-yuhikaku { --ui-logo-bg: #fffdf7; }
.ui-logo-nikkei { --ui-logo-bg: #f8fbff; }
.ui-logo-deagostini { --ui-logo-bg: #009a9a; }
.ui-logo-hourei { --ui-logo-bg: #fffaf7; }
.ui-logo-doshisha { --ui-logo-bg: #fbf8ff; }
.ui-logo-utokyo { --ui-logo-bg: #ffffff; }

.ui-logo-deagostini img {
  max-width: 78%;
  max-height: 46px;
}

.ui-logo-ihi img,
.ui-logo-utokyo img {
  max-height: 66px;
}

@media (max-width: 991.98px) {
  .ui-logo-badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ui-logo-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ui-logo-badge-grid .ui-logo-badge {
    height: 112px;
    padding: 14px 16px;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .ui-logo-badge-grid {
    grid-template-columns: 1fr;
  }
}

/* Process / step cards */
.ui-process-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  margin: 44px 0 0;
}

.ui-process-card {
  --ui-accent: #999;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  align-items: start;
  min-height: auto;
  padding: 28px 34px 30px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ui-accent) 18%, transparent), transparent 42%);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ui-process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.11);
}

.ui-process-card-danger { --ui-accent: #dc3545; }
.ui-process-card-warning { --ui-accent: #f4b400; }
.ui-process-card-success { --ui-accent: #22a06b; }

.ui-process-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 9px;
  display: block;
  background: var(--ui-accent);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  z-index: 2;
  pointer-events: none;
}

.ui-process-badge {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin: 2px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-accent) 12%, #fff);
  color: color-mix(in srgb, var(--ui-accent) 72%, #111827);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ui-process-icon {
  position: relative;
  z-index: 0;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  display: block;
  width: auto;
  height: auto;
  margin: 12px 0 0 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ui-accent);
  opacity: 0.13;
  font-size: 66px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
  transform: rotate(0deg);
}

.ui-process-card-warning .ui-process-icon {
  transform: rotate(-5deg);
}

.ui-process-icon i {
  display: block;
  line-height: 1;
}

.ui-process-card h3 {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 16px;
  padding-right: 36px;
  font-size: 22px;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.ui-process-card p {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

@media (max-width: 767.98px) {
  .ui-process-card {
    display: block;
    padding: 26px 22px 28px;
  }

  .ui-process-badge {
    margin-bottom: 16px;
  }

  .ui-process-icon {
    margin: -4px 0 14px 4px;
    font-size: 58px;
    opacity: 0.12;
    transform: rotate(0deg);
  }

  .ui-process-card-warning .ui-process-icon {
    transform: rotate(-5deg);
  }
}

@media (max-width: 575.98px) {
  .ui-process-list {
    margin-top: 36px;
  }

  .ui-process-card {
    border-radius: 16px;
  }

  .ui-process-accent {
    width: 8px;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }
}

/* Feature card grid */
.ui-feature-section {
  padding: 140px 0;
}

.ui-section-heading {
  max-width: none;
  margin: 0 0 46px;
}

.ui-section-heading .lead {
  max-width: none;
  color: #4b5563;
  line-height: 1.9;
}

.ui-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ui-feature-card {
  --ui-feature-accent: #E6A04F;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  overflow: hidden;
  min-height: 148px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.94)),
    radial-gradient(circle at 100% 0%, rgba(230, 160, 79, 0.11), transparent 44%);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.065);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ui-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ui-feature-accent);
}

.ui-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.10);
}

.ui-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(230, 160, 79, 0.12);
  color: #C57C2E;
  font-size: 25px;
}

.ui-feature-card h3 {
  margin: 1px 0 10px;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.ui-feature-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
}

.ui-section-cta {
  width: 100%;
  margin-top: 42px;
}

@media (max-width: 991.98px) {
  .ui-feature-section {
    padding: 110px 0;
  }

  .ui-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ui-feature-section {
    padding: 90px 0;
  }

  .ui-feature-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 20px 26px;
    border-radius: 16px;
  }

  .ui-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 22px;
  }
}

/* Section text helpers */
.ui-section-body {
  text-align: left !important;
  line-height: 1.95;
  margin-top: 34px !important;
  margin-bottom: 0;
}

#section4 {
  text-align: left;
}

#section4 .heading-text.heading-line,
#section4 .heading-text.heading-line h2 {
  text-align: left;
}

#section4 .ui-logo-badge-grid {
  width: 100%;
  margin-top: 34px;
}

#section4 .ui-section-cta {
  text-align: right;
  margin-top: 44px;
}

/* =========================================================
   Shared modern table components for TeamFile content pages
   Scope policy:
   - Only tables explicitly marked with .ui-modern-table are affected.
   - No broad .table / .container / section overrides.
========================================================= */

.ui-modern-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border-top: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-right: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-left: 6px solid #E6A04F !important;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.055);
}

.ui-modern-table th,
.ui-modern-table td {
  border-top: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid rgba(17, 24, 39, 0.075) !important;
  padding: 17px 20px;
  vertical-align: top;
}

.ui-modern-table tr:last-child > th,
.ui-modern-table tr:last-child > td {
  border-bottom: 0 !important;
}

.ui-modern-table th {
  background: linear-gradient(180deg, #fbfbfc 0%, #f3f4f6 100%);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ui-modern-table td:first-child:not([colspan]) {
  width: 25%;
  min-width: 150px;
  background: rgba(230, 160, 79, 0.065);
  color: #111827;
  font-weight: 700;
  border-right: 1px solid rgba(230, 160, 79, 0.18) !important;
}

.ui-modern-table thead th:first-child,
.ui-modern-table tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.ui-modern-table thead th:last-child,
.ui-modern-table tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.ui-modern-table td[colspan] {
  background: #fbfcfe;
}

.ui-modern-table ul,
.ui-modern-table ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.ui-modern-table li + li {
  margin-top: 0.34rem;
}

.ui-modern-table p:last-child,
.ui-modern-table ul:last-child,
.ui-modern-table ol:last-child {
  margin-bottom: 0;
}

.ui-modern-table img,
.ui-modern-table video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.07);
}

.ui-release-table th,
.ui-release-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.ui-release-table td:nth-child(1) {
  width: 150px;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.ui-release-table td:nth-child(2) {
  width: 128px;
  white-space: nowrap;
  color: #6b7280;
}

.ui-release-table td:nth-child(3) {
  line-height: 1.85;
}

.ui-service-table td:last-child,
.ui-service-table th:last-child {
  white-space: nowrap;
}

.ui-service-table tbody td:last-child {
  color: #111827;
  font-weight: 700;
}

.ui-functions-table h5 {
  margin-top: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 767.98px) {
  .ui-modern-table {
    border-left-width: 5px !important;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  }

  .ui-modern-table th,
  .ui-modern-table td {
    padding: 14px 15px;
  }

  .ui-modern-table td:first-child:not([colspan]) {
    min-width: 128px;
  }

  .ui-release-table td:nth-child(1),
  .ui-release-table td:nth-child(2) {
    white-space: normal;
  }
}

/* Shared modern list components */
.ui-modern-list,
.ui-modern-table ul,
.ui-modern-table ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.ui-modern-list li,
.ui-modern-table ul li,
.ui-modern-table ol li {
  position: relative;
  padding-left: 1.55rem;
  line-height: 1.82;
}

.ui-modern-list li + li,
.ui-modern-table ul li + li,
.ui-modern-table ol li + li {
  margin-top: 0.36rem;
}

.ui-modern-list li::before,
.ui-modern-table ul li::before,
.ui-modern-table ol li::before {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #E6A04F;
  box-shadow: 0 0 0 4px rgba(230, 160, 79, 0.12);
}

ol.ui-modern-list,
.ui-modern-table ol {
  counter-reset: ui-list-counter;
}

ol.ui-modern-list > li,
.ui-modern-table ol > li {
  counter-increment: ui-list-counter;
  padding-left: 2.25rem;
}

ol.ui-modern-list > li::before,
.ui-modern-table ol > li::before {
  content: counter(ui-list-counter);
  top: 0.24em;
  left: 0;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(230, 160, 79, 0.14);
  box-shadow: inset 0 0 0 1px rgba(230, 160, 79, 0.28);
  color: #9a5a1e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ui-modern-list ul,
.ui-modern-list ol,
.ui-modern-table ul ul,
.ui-modern-table ul ol,
.ui-modern-table ol ul,
.ui-modern-table ol ol {
  margin-top: 0.42rem;
  margin-bottom: 0.42rem;
}

.ui-modern-list ul li::before,
.ui-modern-table ul ul li::before,
.ui-modern-table ol ul li::before {
  width: 5px;
  height: 5px;
  top: 0.78em;
  background: #c98235;
  box-shadow: 0 0 0 3px rgba(230, 160, 79, 0.10);
}

/* Functions sidebar list: keep it modern but compact */
.tf-functions-page .sidebar .ui-modern-list li,
#page-content .sidebar .ui-modern-list li {
  padding-left: 1.2rem;
  line-height: 1.65;
}

.tf-functions-page .sidebar .ui-modern-list li::before,
#page-content .sidebar .ui-modern-list li::before {
  top: 0.66em;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 3px rgba(230, 160, 79, 0.10);
}

@media (max-width: 575.98px) {
  .ui-modern-list li,
  .ui-modern-table ul li,
  .ui-modern-table ol li {
    padding-left: 1.35rem;
  }

  ol.ui-modern-list > li,
  .ui-modern-table ol > li {
    padding-left: 2.05rem;
  }
}


/* v3: keep sidebar nav bullets inline with text */
.tf-functions-page .sidebar .ui-modern-list li,
#page-content .sidebar .ui-modern-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.78rem;
  padding-left: 0;
}

.tf-functions-page .sidebar .ui-modern-list li::before,
#page-content .sidebar .ui-modern-list li::before {
  position: relative;
  left: auto;
  top: auto;
  margin-top: 0.68em;
  margin-left: 0;
  flex: 0 0 auto;
}

.tf-functions-page .sidebar .ui-modern-list li > a,
#page-content .sidebar .ui-modern-list li > a {
  display: block;
  flex: 1 1 auto;
}


/* v5: mobile horizontal scroll for content-heavy tables */
.ui-table-scroll {
  width: 100%;
}

@media (max-width: 767.98px) {
  .tf-functions-page .ui-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    padding-bottom: 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 160, 79, 0.65) rgba(17, 24, 39, 0.08);
  }

  .tf-functions-page .ui-table-scroll::-webkit-scrollbar {
    height: 8px;
  }

  .tf-functions-page .ui-table-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
  }

  .tf-functions-page .ui-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(230, 160, 79, 0.72);
  }

  .tf-functions-page .ui-table-scroll .ui-modern-table {
    min-width: 760px;
    margin-bottom: 0;
  }

  .tf-functions-page .ui-table-scroll .ui-modern-table th,
  .tf-functions-page .ui-table-scroll .ui-modern-table td {
    white-space: normal;
  }

  .tf-functions-page .ui-table-scroll .ui-modern-table td:first-child:not([colspan]),
  .tf-functions-page .ui-table-scroll .ui-modern-table th:first-child:not([colspan]) {
    min-width: 190px;
    width: 30%;
  }

  .tf-functions-page .ui-table-scroll .ui-modern-table td:nth-child(2),
  .tf-functions-page .ui-table-scroll .ui-modern-table th:nth-child(2) {
    min-width: 520px;
  }

  .tf-functions-page .ui-table-scroll .ui-modern-table td[colspan] {
    min-width: 760px;
  }

  .tf-functions-page .ui-table-scroll .ui-modern-table img,
  .tf-functions-page .ui-table-scroll .ui-modern-table video {
    max-width: 100%;
  }
}
