/* ========================================
   UCT サイト共通スタイル
   ======================================== */

/* リセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 18px;
  color: #333;
  background: #f5f5f5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   ヘッダー
   ======================================== */
#header_container {
  background: #fff;
  border-bottom: 2px solid var(--uct-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
#header_content {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}
.hd_title {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hd_title img {
  height: auto;
  width: 250px;
}
#global_menu { margin-left: auto; }
#global_menu_ul {
  list-style: none;
  display: flex;
}
#global_menu_ul > li > a {
  display: block;
  padding: 0 14px;
  line-height: 64px;
  font-size: 17px;
  white-space: nowrap;
  transition: background 0.2s;
}
#global_menu_ul > li > a:hover { background: var(--uct-theme-pale, #e8f1fb); color: var(--uct-primary); }

.menu-item-has-children { position: relative; }
.sub-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 2px solid var(--uct-primary);
  list-style: none;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 200;
}
.sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 17px;
  border-bottom: 1px solid #f0f0f0;
}
.sub-menu li a:hover { background: var(--uct-theme-pale, #f0f6ff); color: var(--uct-primary); }
.menu-item-has-children:hover .sub-menu { display: block; }

/* ========================================
   パンくず
   ======================================== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 16px;
  color: #888;
}
.breadcrumb-inner li {
  display: flex;
  align-items: center;
  min-width: 0;
}
.breadcrumb-inner li:not(:last-child)::after {
  content: "›";
  flex: 0 0 auto;
  margin: 0 6px;
}
.breadcrumb-inner a { color: var(--uct-primary); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-current {
  overflow-wrap: anywhere;
}

/* ========================================
   ページヒーロー（製品・サービス各ページ共通）
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--uct-deep) 0%, var(--uct-primary) 60%, var(--uct-theme-primary, #5b9fd4) 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
}
.page-hero .hero-label {
  font-size: 16px;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.page-hero h1 {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 16px;
}
.page-hero .hero-sub {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

/* トップページ */
.home-hero {
  background: linear-gradient(135deg, var(--uct-deep) 0%, var(--uct-primary) 60%, var(--uct-theme-primary, #5b9fd4) 100%);
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
}
.home-hero-eyecatch {
  font-size: 17px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  opacity: 0.95;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 4px 14px rgba(0,0,0,0.65);
  text-transform: uppercase;
}
.home-hero h1 {
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-bottom: 20px;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 4px 18px rgba(0,0,0,0.78),
    0 10px 30px rgba(0,0,0,0.5);
}
.home-hero .hero-sub {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 640px;
  opacity: 0.98;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 3px 14px rgba(0,0,0,0.72);
}
.home-hero-cta {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  color: var(--uct-primary);
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 40px;
}
.home-hero-cta:hover { background: var(--uct-theme-pale, #e8f1fb); }

body[data-page-path="/"] .page-hero,
body[data-page-path="/"] .home-hero,
body[data-page-path="/en/"] .home-hero {
  background: url("/assets/img/home-hero-keyimg.png") center center / cover no-repeat;
}

body[data-page-path="/en/"] .page-hero {
  background: url("/assets/img/home-hero-keyimg.png") center center / cover no-repeat;
  color: #fff;
  padding: 86px 20px 74px;
  text-align: center;
}

body[data-page-path="/en/"] .page-hero .hero-label,
body[data-page-path="/en/services/rtos/"] .page-hero .hero-label,
body[data-page-path="/en/services/smart-building/"] .page-hero .hero-label,
body[data-page-path="/en/services/kokosil/"] .page-hero .hero-label {
  font-size: 17px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  opacity: 0.95;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 4px 14px rgba(0,0,0,0.65);
}

body[data-page-path="/en/"] .page-hero h1,
body[data-page-path="/en/services/rtos/"] .page-hero h1,
body[data-page-path="/en/services/smart-building/"] .page-hero h1,
body[data-page-path="/en/services/kokosil/"] .page-hero h1 {
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-bottom: 20px;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 4px 18px rgba(0,0,0,0.78),
    0 10px 30px rgba(0,0,0,0.5);
}

body[data-page-path="/en/"] .page-hero .hero-sub,
body[data-page-path="/en/services/rtos/"] .page-hero .hero-sub,
body[data-page-path="/en/services/smart-building/"] .page-hero .hero-sub,
body[data-page-path="/en/services/kokosil/"] .page-hero .hero-sub {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 640px;
  opacity: 0.98;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 3px 14px rgba(0,0,0,0.72);
}

body[data-page-path="/services/rtos/"] .page-hero {
  background: url("/assets/img/rtos/rtos-hero-keyimg.png") center center / cover no-repeat;
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
}

body[data-page-path="/services/rtos/"] .page-hero .hero-label {
  font-size: 17px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  opacity: 0.95;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 4px 14px rgba(0,0,0,0.65);
}

body[data-page-path="/services/rtos/"] .page-hero h1 {
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-bottom: 20px;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 4px 18px rgba(0,0,0,0.78),
    0 10px 30px rgba(0,0,0,0.5);
}

body[data-page-path="/services/rtos/"] .page-hero .hero-sub {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 640px;
  opacity: 0.98;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 3px 14px rgba(0,0,0,0.72);
}

body[data-page-path="/en/services/rtos/"] .page-hero {
  background: url("/assets/img/rtos/rtos-hero-keyimg.png") center center / cover no-repeat;
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
}

body[data-page-path="/services/smart-building/"] .page-hero {
  background: url("/assets/img/smart-building/sbtop.png") center center / cover no-repeat;
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
}

body[data-page-path="/services/smart-building/"] .page-hero .hero-label {
  font-size: 17px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  opacity: 0.95;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 4px 14px rgba(0,0,0,0.65);
}

body[data-page-path="/services/smart-building/"] .page-hero h1 {
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-bottom: 20px;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 4px 18px rgba(0,0,0,0.78),
    0 10px 30px rgba(0,0,0,0.5);
}

body[data-page-path="/services/smart-building/"] .page-hero .hero-sub {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 640px;
  opacity: 0.98;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 3px 14px rgba(0,0,0,0.72);
}

body[data-page-path="/en/services/smart-building/"] .page-hero {
  background: url("/assets/img/smart-building/smart-building-hero.jpg") center center / cover no-repeat;
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
}

body[data-page-path="/services/kokosil/"] .page-hero {
  background: url("/assets/img/kokosil/kokosil-hero-clean.png") center center / cover no-repeat;
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
}

body[data-page-path="/services/kokosil/"] .page-hero .hero-label {
  font-size: 17px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  opacity: 0.95;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 4px 14px rgba(0,0,0,0.65);
}

body[data-page-path="/services/kokosil/"] .page-hero h1 {
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-bottom: 20px;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 4px 18px rgba(0,0,0,0.78),
    0 10px 30px rgba(0,0,0,0.5);
}

body[data-page-path="/services/kokosil/"] .page-hero .hero-sub {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 640px;
  opacity: 0.98;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 3px 14px rgba(0,0,0,0.72);
}

body[data-page-path="/en/services/kokosil/"] .page-hero {
  background: url("/assets/img/kokosil/kokosil-hero-clean.png") center center / cover no-repeat;
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
}

.home-service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.home-service-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.home-service-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.home-service-visual {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: var(--uct-theme-pale-border, #dce4ee);
  border-bottom: 2px dashed var(--uct-theme-pale-border, #aab8c8);
  color: var(--uct-theme-pale-border, #7a90a8);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  justify-content: center;
  line-height: 1.7;
  margin: 0;
  overflow: hidden;
}
.home-service-visual.has-image {
  align-items: stretch;
  background: var(--uct-theme-pale, #e8f1fb);
  border-bottom: 1px solid var(--uct-theme-pale-border, #d0e4f7);
}
.home-service-visual.has-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
body[data-page-path="/"] .home-service-card[href="/services/rtos/"] .home-service-visual.has-image,
body[data-page-path="/en/"] .home-service-card[href="/en/services/rtos/"] .home-service-visual.has-image {
  background: #fff;
}
body[data-page-path="/"] .home-service-card[href="/services/rtos/"] .home-service-visual.has-image img,
body[data-page-path="/en/"] .home-service-card[href="/en/services/rtos/"] .home-service-visual.has-image img {
  object-fit: cover;
}
.home-service-visual strong { font-size: 17px; }
.home-service-card-body {
  flex: 1;
  padding: 16px 18px;
}
.home-service-tag {
  border-radius: 3px;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 3px 8px;
}
.home-service-tag.blue { background: var(--uct-theme-pale, #e8f1fb); color: var(--uct-primary); }
.home-service-tag.green { background: #e8f5ef; color: #1a6f4f; }
.home-service-card h3 {
  color: var(--uct-heading);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.home-service-card-body p {
  color: #555;
  font-size: 17px;
  line-height: 1.7;
}
.home-service-card-footer {
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  padding: 12px 18px;
  text-align: center;
}
.home-service-card-footer.blue { background: var(--uct-primary); }
.home-service-card-footer.green { background: #1a6f4f; }
.home-service-nav {
  margin: 32px 0 0;
  text-align: center;
}
.home-service-nav a {
  border: 2px solid var(--uct-primary);
  border-radius: 4px;
  color: var(--uct-primary);
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 32px;
}
.home-service-nav a:hover { background: var(--uct-primary); color: #fff; }
.home-services-section + .section { padding-top: 0; }

/* サービス一覧 */
.services-overview-card.service-theme-rtos {
  --uct-primary: #e80000;
  --uct-deep: #e80000;
  --uct-heading: #e80000;
  --uct-theme-primary: #ba0000;
  --uct-theme-pale: #ffe8e8;
  --uct-theme-pale-border: #ffe8e8;
}
.services-overview-card.service-theme-smart-building {
  --uct-primary: #133ba9;
  --uct-deep: #133ba9;
  --uct-heading: #133ba9;
  --uct-theme-primary: #0f2f87;
  --uct-theme-pale: #eef1fb;
  --uct-theme-pale-border: #c4cdeb;
}
.services-overview-card.service-theme-kokosil {
  --uct-primary: #090;
  --uct-deep: #060;
  --uct-heading: #060;
  --uct-theme-primary: #070;
  --uct-theme-pale: #e8f5e8;
  --uct-theme-pale-border: #8c8;
}
.services-overview-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.services-overview-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.services-overview-icon {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 43px;
  height: 100px;
  justify-content: center;
}
.services-overview-icon.blue { background: linear-gradient(135deg, var(--uct-deep) 0%, var(--uct-primary) 100%); }
.services-overview-icon.green { background: linear-gradient(135deg, #1a6f4f 0%, #2a9f6f 100%); }
.services-overview-visual {
  aspect-ratio: 16 / 9;
  background: var(--uct-theme-pale, #e8f1fb);
  border-bottom: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  overflow: hidden;
}
.services-overview-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
body[data-page-path="/services/"] .services-overview-visual:has(img[src="/assets/img/rtos/utkernel/utkernel-home-card.jpg"]),
body[data-page-path="/en/services/"] .services-overview-visual:has(img[src="/assets/img/rtos/utkernel/utkernel-home-card.jpg"]) {
  background: #fff;
}
body[data-page-path="/services/"] .services-overview-visual img[src="/assets/img/rtos/utkernel/utkernel-home-card.jpg"],
body[data-page-path="/en/services/"] .services-overview-visual img[src="/assets/img/rtos/utkernel/utkernel-home-card.jpg"] {
  object-fit: contain;
}
.services-overview-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px;
}
.services-overview-audience {
  align-self: flex-start;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 3px 8px;
}
.services-overview-audience.blue { background: var(--uct-theme-pale, #e8f1fb); color: var(--uct-primary); }
.services-overview-audience.green { background: #e8f5ef; color: #1a6f4f; }
.services-overview-card h2 {
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 8px;
}
.services-overview-card h2.blue { color: var(--uct-heading); }
.services-overview-card h2.green { color: #1a6f4f; }
.services-overview-card p {
  color: #555;
  flex: 1;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.services-overview-link {
  border-radius: 4px;
  color: #fff;
  display: block;
  font-size: 17px;
  font-weight: bold;
  padding: 10px 18px;
  text-align: center;
}
.services-overview-link.blue { background: var(--uct-primary); }
.services-overview-link.green { background: #1a6f4f; }
.services-overview-link.blue:hover { background: var(--uct-theme-primary, #155a8a); }
.services-overview-link.green:hover { background: #155a3a; }
.services-overview-section + .section { padding-top: 0; }
/* ========================================
   セクション共通
   ======================================== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
}
.section-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--uct-primary);
  border-bottom: 3px solid var(--uct-primary);
  padding-bottom: 10px;
  margin-bottom: 28px;
}
.section-title span {
  font-size: 17px;
  font-weight: normal;
  color: #888;
  margin-left: 12px;
}

/* ========================================
   テキストコンポーネント
   ======================================== */

/* 課題提示ボックス */
.pain-box {
  background: #fff;
  border: 1px solid #e80000;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.pain-box h3 {
  font-size: 22px;
  font-weight: bold;
  color: #e80000;
  margin-bottom: 12px;
}
.pain-box ul { list-style: none; }
.pain-box ul li {
  font-size: 18px;
  color: #555;
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.6;
}
.pain-box ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e80000;
  font-weight: bold;
}

/* 注記・警告ボックス */
.kit-note {
  background: #fff8e8;
  border: 1px solid #f0d080;
  border-left: 4px solid #e6a800;
  border-radius: 0;
  padding: 12px 16px;
  font-size: 17px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* サポート・情報ボックス */
.support-box {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 17px;
  color: #444;
  line-height: 1.65;
}
.support-box strong { color: var(--uct-primary); }

/* 概要ブロック */
.overview-box {
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

/* ========================================
   CMS構造化ページ
   ======================================== */
.cms-richtext {
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 28px 32px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.cms-richtext > * + * {
  margin-top: 16px;
}
.cms-richtext ul,
.cms-richtext ol {
  padding-left: 1.5em;
}
.cms-richtext p {
  max-width: 76em;
}
.cms-richtext a {
  color: var(--uct-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cms-richtext strong {
  color: var(--uct-theme-heading, #1a4f7a);
}
.cms-richtext h2 {
  border-bottom: 2px solid var(--uct-theme-pale-border, #d0e4f7);
  color: var(--uct-primary);
  font-size: 24px;
  margin-top: 48px;
  padding-bottom: 8px;
}
.cms-richtext h2:first-child {
  margin-top: 0;
}
.cms-richtext h3 {
  border-left: 4px solid var(--uct-primary);
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 20px;
  margin-top: 48px;
  padding-left: 10px;
}
.cms-richtext h3:first-child {
  margin-top: 0;
}
.cms-richtext hr {
  border: 0;
  border-top: 1px solid var(--uct-theme-pale-border, #dfe8f3);
  margin: 32px 0;
}
.cms-richtext table {
  border-collapse: collapse;
  font-size: 18px;
  width: 100%;
}
.cms-richtext th,
.cms-richtext td {
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.cms-richtext th,
.cms-richtext td:first-child {
  background: var(--uct-theme-pale, #f5f8fc);
}
.cms-richtext .contact-address {
  overflow-wrap: anywhere;
}
.cms-definition-table .company-access-link,
.cms-definition-table .company-website-link {
  color: var(--uct-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cms-definition-table .company-access-link:hover,
.cms-definition-table .company-website-link:hover {
  color: var(--uct-theme-heading, #1a4f7a);
}
.cms-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cms-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cms-card h3 {
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 22px;
  margin-bottom: 12px;
}

body:is([data-page-path="/services/smart-building/uct-6lowpan-development-kit/"], [data-page-path="/en/services/smart-building/uct-6lowpan-development-kit/"]) .cms-card:has(> .cms-card-marker) {
  display: flex;
  padding-top: 58px;
  position: relative;
}

body:is([data-page-path="/services/smart-building/uct-6lowpan-development-kit/"], [data-page-path="/en/services/smart-building/uct-6lowpan-development-kit/"]) .cms-card-marker {
  align-items: center;
  background: var(--uct-primary);
  border-radius: 7px 0 10px 0;
  color: #fff;
  display: inline-flex;
  font-size: 19px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  left: -1px;
  letter-spacing: 0.08em;
  line-height: 1;
  min-width: 58px;
  padding: 0 12px;
  position: absolute;
  top: -1px;
}

body:is([data-page-path="/services/smart-building/uct-6lowpan-development-kit/"], [data-page-path="/en/services/smart-building/uct-6lowpan-development-kit/"]) .cms-card:has(> .cms-card-marker) > h3 {
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 14px;
  width: 100%;
}

body:is([data-page-path="/services/smart-building/uct-6lowpan-development-kit/"], [data-page-path="/en/services/smart-building/uct-6lowpan-development-kit/"]) .cms-card:has(> .cms-card-marker) > p {
  margin-top: 0;
}

.cms-card-image {
  margin: auto 0 0;
  overflow: hidden;
  padding-top: 24px;
}

.cms-card-image img {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.cms-card-video {
  margin: 22px 0 0;
}
.cms-card-video video {
  background: #000;
  display: block;
  height: auto;
  width: 100%;
}
.cms-card-video figcaption {
  color: #555;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 10px;
  text-align: center;
}
body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .device-grid-section .cms-cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .device-grid-section .cms-card:nth-child(3) {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .device-grid-section .cms-cards-grid {
    grid-template-columns: 1fr;
  }
  body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .device-grid-section .cms-card:nth-child(3) {
    grid-column: auto;
  }
}

.smart-locker-image {
  margin: 24px 0 0;
  width: 100%;
}

.smart-locker-image img {
  border-radius: 6px;
  display: block;
  height: auto;
  width: 100%;
}

.sixlowpan-overview-image {
  margin: 32px auto 0;
  max-width: 760px;
  text-align: center;
  width: 100%;
}

.sixlowpan-overview-image img {
  border-radius: 6px;
  display: block;
  height: auto;
  width: 100%;
}
.cms-card p {
  line-height: 1.7;
}
.cms-card p:last-child:has(.cms-inline-link) {
  margin-top: auto;
  padding-top: 18px;
}
.cms-inline-link {
  display: inline-flex;
  align-items: center;
  color: var(--uct-primary);
  font-weight: bold;
}
.cms-inline-link:hover {
  text-decoration: underline;
}
.cms-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.cms-flow-block {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d8e5f2);
  border-left: 4px solid var(--uct-primary);
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-width: 0;
  padding: 20px 22px;
}
.cms-flow-block h3 {
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.cms-flow-block p {
  color: #555;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.cms-flow-block p + p {
  border-top: 1px solid var(--uct-theme-pale-border, #eef3f8);
  margin-top: 9px;
  padding-top: 9px;
}
.cms-faq {
  display: grid;
  gap: 14px;
}
.cms-faq-item {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  border-radius: 8px;
  overflow: hidden;
}
.cms-faq-item summary {
  color: var(--uct-theme-heading, #1a4f7a);
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  list-style: none;
  padding: 18px 52px 18px 22px;
  position: relative;
}
.cms-faq-item summary::-webkit-details-marker { display: none; }
.cms-faq-item summary::after {
  content: "+";
  font-size: 26px;
  position: absolute;
  right: 22px;
  top: 13px;
}
.cms-faq-item[open] summary::after { content: "−"; }
.cms-faq-item[open] summary {
  background: var(--uct-theme-pale, #f2f7fd);
  border-bottom: 1px solid var(--uct-theme-pale-border, #d0e4f7);
}
.cms-faq-item > div {
  color: #555;
  line-height: 1.8;
  padding: 20px 22px;
}
.cms-faq-item > div p + p { margin-top: 12px; }
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div a {
  color: #e80000;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div a:hover,
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div a:focus-visible {
  color: #999;
}
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div h3 {
  border-left: 4px solid #e80000;
  color: #e80000;
  font-size: 20px;
  margin: 26px 0 12px;
  padding-left: 12px;
}
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div ul {
  margin: 12px 0 18px;
  padding-left: 1.5em;
}
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div li {
  line-height: 1.8;
  margin-bottom: 5px;
}
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  margin: 10px 0 18px;
  overflow-x: auto;
  padding: 12px 16px;
}
body[data-page-path="/services/rtos/question.html"] .cms-faq-item > div code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.cms-field-list {
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  border-radius: 8px;
  overflow: hidden;
}
.cms-field-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
}
.cms-field-list > div + div { border-top: 1px solid var(--uct-theme-pale-border, #e3ebf4); }
.cms-field-list dt {
  background: var(--uct-theme-pale, #f2f7fd);
  color: var(--uct-theme-heading, #1a4f7a);
  font-weight: bold;
  padding: 12px 16px;
}
.cms-field-list dd {
  color: #888;
  padding: 12px 16px;
}
.cms-form-note {
  color: #666;
  font-size: 17px;
  margin-top: 18px;
  text-align: center;
}
@media (max-width: 700px) {
  .cms-richtext {
    padding: 22px 18px;
  }
  .cms-richtext figure,
  .cms-richtext .table-wrap {
    overflow-x: auto;
  }
  .cms-richtext table {
    display: block;
    min-width: 560px;
    overflow-x: auto;
  }
  .cms-flow-grid { grid-template-columns: 1fr; }
  .cms-field-list > div { grid-template-columns: 1fr; }
  .cms-field-list dd { display: none; }
}
.cms-definition-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cms-definition-table th,
.cms-definition-table td {
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.cms-definition-table th {
  width: 24%;
  background: var(--uct-theme-pale, #eaf2fb);
  color: var(--uct-theme-heading, #1a4f7a);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .cms-definition-table,
  .cms-definition-table tbody,
  .cms-definition-table tr,
  .cms-definition-table th,
  .cms-definition-table td {
    display: block;
    width: 100%;
  }
  .cms-definition-table th {
    border-bottom: 0;
    white-space: normal;
  }
  .cms-definition-table td {
    border-top: 0;
  }
}
.cms-link-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.cms-link-list li {
  background: #fff;
  border-left: 4px solid var(--uct-primary);
  border-radius: 0;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cms-link-list a {
  color: var(--uct-theme-heading, #1a4f7a);
  font-weight: bold;
}
.cms-link-list p {
  margin-top: 6px;
  color: #555;
  line-height: 1.6;
}
.cms-notice {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-left: 4px solid var(--uct-primary);
  border-radius: 0;
  padding: 20px 24px;
  line-height: 1.7;
}
.cms-notice h2 {
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 22px;
  margin-bottom: 10px;
}
.cms-notice-warning {
  background: #fff8e8;
  border-color: #f0d080;
  border-left-color: #e6a800;
}
.cms-cta,
.cta-block {
  background: var(--uct-primary);
  color: #fff;
  border-radius: 8px;
  padding: 32px 40px;
  text-align: center;
}
.cms-cta h2,
.cta-block h2 {
  font-size: 29px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.cms-cta div,
.cta-block p {
  font-size: 19px;
  line-height: 1.6;
}
.cms-cta div p,
.cta-block p {
  margin-bottom: 18px;
}
.cms-cta-link,
.cta-block a {
  display: inline-block;
  background: #fff;
  color: var(--uct-primary);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
  padding: 13px 44px;
  border-radius: 4px;
  transition: background 0.2s;
}
.cms-cta-link:hover,
.cta-block a:hover {
  background: var(--uct-theme-pale, #e8f1fb);
}
.overview-box strong { color: var(--uct-primary); }

/* サービス概要ブロック */
.service-overview {
  background: #fff;
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 36px;
}
.service-overview p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

/* RTOS 移行ガイド・開発キット詳細 */
.toc-box {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-left: 4px solid var(--uct-primary);
  border-radius: 0;
  margin-top: 28px;
  padding: 22px 26px;
}
.toc-box h4 {
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 19px;
  margin-bottom: 12px;
}
.toc-box ol {
  line-height: 1.9;
  margin-left: 20px;
}
.toc-box ol ol { margin: 4px 0 6px 20px; }
.toc-box a {
  color: var(--uct-primary);
  font-weight: bold;
}
.toc-box a:hover { text-decoration: underline; }
.sec-details {
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 0 20px;
}
.sec-summary {
  background: var(--uct-primary);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.5;
  list-style: none;
  padding: 16px 56px 16px 20px;
  position: relative;
}
.sec-summary::-webkit-details-marker { display: none; }
.sec-summary::after {
  content: "+";
  font-size: 29px;
  line-height: 1;
  position: absolute;
  right: 20px;
  top: 16px;
}
.sec-details[open] .sec-summary {
  border-radius: 8px 8px 0 0;
}
.sec-details[open] .sec-summary::after { content: "−"; }
.sec-en {
  display: inline-block;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.08em;
  margin-left: 8px;
  opacity: 0.8;
  text-transform: uppercase;
}
.compare-table,
.api-table {
  background: #fff;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 17px;
  margin: 14px 0 22px;
  width: 100%;
}
.compare-table th,
.api-table th {
  background: var(--uct-theme-primary, #2f6fa8);
  border: 1px solid var(--uct-theme-primary, #2f6fa8);
  color: #fff;
  line-height: 1.5;
  padding: 10px 12px;
  text-align: left;
}
.compare-table td,
.api-table td {
  border: 1px solid var(--uct-theme-pale-border, #c8ddf0);
  line-height: 1.65;
  padding: 9px 12px;
  vertical-align: top;
}
.compare-table tbody tr:nth-child(even),
.api-table tbody tr:nth-child(even) {
  background: var(--uct-theme-pale, #f8fbff);
}
.compare-table .mark {
  font-size: 19px;
  font-weight: bold;
  text-align: center;
}
.mark-ok { color: #17834f; }
.mark-partial { color: #c27800; }
.mark-none { color: #c73a3a; }
.note-box {
  background: var(--uct-theme-pale, #f6faff);
  border-left: 4px solid var(--uct-primary);
  border-radius: 0;
  color: #444;
  line-height: 1.8;
  margin: 18px 0;
  padding: 16px 20px;
}
.file-list {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  color: #334;
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.9;
  margin: 16px 0 20px;
  overflow-x: auto;
  padding: 18px 18px 18px 36px;
}
.content-h3 {
  border-left: 4px solid var(--uct-primary);
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 22px;
  line-height: 1.5;
  margin: 28px 0 14px;
  padding-left: 12px;
}
.content-h4 {
  color: var(--uct-heading);
  font-size: 18px;
  margin: 22px 0 10px;
}
.diagram-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 20px 0 24px;
}
.diagram-figure {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d8e5f2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.diagram-figure img {
  margin: 0 auto 10px;
}
.diagram-figure figcaption {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}
.quote-block {
  background: #fff;
  border-left: 4px solid var(--uct-theme-pale-border, #8aa8c8);
  color: #444;
  font-size: 17px;
  line-height: 1.8;
  margin: 16px 0;
  padding: 16px 20px;
}
.code-block {
  background: #1f2d3a;
  border-radius: 6px;
  color: #f5f8fb;
  font-family: Consolas, "Courier New", monospace;
  font-size: 17px;
  line-height: 1.7;
  margin: 14px 0 18px;
  overflow-x: auto;
  padding: 14px 16px;
  white-space: pre;
}
.warn-box {
  background: #fff8e8;
  border-left: 4px solid #e6a800;
  border-radius: 0;
  color: #4d3d12;
  font-size: 17px;
  line-height: 1.8;
  margin: 16px 0;
  padding: 16px 20px;
}
.kit-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 24px;
}
.kit-card-v2 {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #cce0f5);
  border-radius: 8px;
  overflow: hidden;
}
.kit-card-v2-header {
  align-items: center;
  background: var(--uct-primary);
  color: #fff;
  display: flex;
  gap: 14px;
  padding: 14px 20px;
}
.kit-card-v2-header img {
  background: #fff;
  border-radius: 4px;
  flex: 0 0 auto;
  height: 36px;
  max-width: 120px;
  padding: 4px 8px;
  width: auto;
}
.kit-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.45;
}
.kit-card-v2-body {
  background: #fff;
  color: #444;
  line-height: 1.75;
  padding: 18px 20px;
}
.kit-card-v2-body ul,
.feature-card ul {
  line-height: 1.8;
  margin-top: 10px;
  padding-left: 20px;
}
.common-spec {
  background: var(--uct-theme-pale, #f5f8fc);
  border: 1px solid var(--uct-theme-pale-border, #cce0f5);
  border-radius: 8px;
  margin-top: 32px;
  padding: 20px 24px;
}
.common-spec h3 {
  color: var(--uct-primary);
  font-size: 18px;
  margin: 0 0 18px;
}
.price-box {
  background: var(--uct-theme-pale, #eaf2fb);
  border: 1px solid var(--uct-primary);
  border-radius: 6px;
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 16px;
  padding: 14px 20px;
  text-align: left;
}
.price-box .price {
  color: var(--uct-primary);
  font-size: 26px;
  font-weight: bold;
  margin-top: 6px;
}
.iot-flow {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}
.iot-flow div {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  border-radius: 8px;
  padding: 18px;
  position: relative;
  text-align: center;
}
.iot-flow div:not(:last-child)::after {
  color: var(--uct-primary);
  content: "→";
  font-size: 26px;
  font-weight: bold;
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.iot-flow strong {
  color: var(--uct-theme-heading, #1a4f7a);
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.iot-flow span {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}
.kit-spec-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.kit-spec-card {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.kit-spec-card img {
  aspect-ratio: 16 / 9;
  background: var(--uct-theme-pale, #f2f7fd);
  object-fit: cover;
  width: 100%;
}
.kit-spec-card h3 {
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 22px;
  line-height: 1.4;
  padding: 18px 20px 8px;
}
.kit-spec-card p {
  color: #555;
  line-height: 1.7;
  padding: 0 20px 14px;
}
.kit-spec-card dl {
  border-top: 1px solid var(--uct-theme-pale-border, #e3ebf4);
  display: grid;
  grid-template-columns: 120px 1fr;
}
body[data-page-path="/services/rtos/iot-engine-kits.html"] .kit-spec-card dl {
  grid-template-columns: 140px minmax(0, 1fr);
}
body[data-page-path="/services/rtos/iot-engine-kits.html"] .kit-spec-card dt {
  white-space: nowrap;
}
.kit-spec-card dt,
.kit-spec-card dd {
  border-bottom: 1px solid var(--uct-theme-pale-border, #e3ebf4);
  line-height: 1.7;
  padding: 12px 16px;
}
.kit-spec-card dt {
  background: var(--uct-theme-pale, #f2f7fd);
  color: var(--uct-theme-heading, #1a4f7a);
  font-weight: bold;
}
.kit-spec-note {
  color: #666;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .toc-box,
  .common-spec {
    padding: 20px 18px;
  }
  .sec-details {
    padding: 0 14px;
  }
  .sec-summary {
    font-size: 18px;
    padding: 14px 46px 14px 16px;
  }
  .sec-summary::after {
    right: 16px;
    top: 13px;
  }
  .compare-table,
  .api-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .compare-table th,
  .compare-table td,
  .api-table th,
  .api-table td {
    white-space: normal;
    min-width: 120px;
  }
  .kit-card-v2-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .price-box .price {
    font-size: 29px;
  }
  .iot-flow,
  .kit-spec-grid {
    grid-template-columns: 1fr;
  }
  .iot-flow div:not(:last-child)::after {
    bottom: -22px;
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }
  .kit-spec-card dl {
    grid-template-columns: 1fr;
  }
  body[data-page-path="/services/rtos/iot-engine-kits.html"] .kit-spec-card dl {
    grid-template-columns: 1fr;
  }
  .kit-spec-card dt {
    border-bottom: 0;
  }
}

/* ========================================
   ユーティリティ
   ======================================== */

/* ページ内リンクのオフセット（sticky header分） */
.anchor-target {
  display: block;
  height: 128px;
  margin-top: -128px;
  visibility: hidden;
  pointer-events: none;
}

/* メインラッパー */
.main-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* 戻るリンク */
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--uct-primary);
  font-size: 17px;
  border: 1px solid var(--uct-primary);
  padding: 8px 18px;
  border-radius: 4px;
  transition: background 0.2s;
}
.back-link:hover { background: var(--uct-primary); color: #fff; }

/* ========================================
   ナビゲーション
   ======================================== */

/* セカンダリナビ（ページ内メニュー） */
.kit-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 64px;
  z-index: 90;
}
.kit-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.kit-nav-inner a {
  display: block;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.kit-nav-inner a:hover {
  background: #ddd;
  color: #555;
  border-bottom-color: #ddd;
}
.kit-nav-inner a[aria-current="page"],
.kit-nav-inner a[aria-current="page"]:focus-visible,
.kit-nav-inner a:active {
  background: var(--chub-primary);
  color: #fff;
  border-bottom-color: var(--chub-primary);
}
.kit-nav-inner a:focus-visible {
  color: var(--uct-primary);
  border-bottom-color: var(--uct-primary);
  outline: 2px solid var(--uct-primary);
  outline-offset: -2px;
}
@media (max-width: 700px) {
  body[data-page-path^="/en/services/rtos/"] #main-content {
    overflow-wrap: anywhere;
  }
  body[data-page-path^="/en/services/rtos/"] #main-content a[style*="white-space:nowrap"] {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 700px) {
  .kit-nav-inner { padding: 0 8px; }
  .kit-nav-inner a { padding: 12px 14px; font-size: 17px; }
}

/* 関連製品・ページ */
.related-section,
.related-nav {
  background: #fff;
  border-top: 1px solid #e0e0e0;
}
.related-list,
.related-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  list-style: none;
  margin: 0 auto 36px;
  max-width: 1060px;
  padding-left: 0;
}
.related-list > li,
.related-nav-list > li {
  min-width: 0;
}
.related-list > li:only-child,
.related-nav-list > li:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 14px) / 2);
}
.related-list > li > a,
.related-nav-list > li > a {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 84px;
  border: 1px solid var(--uct-primary);
  color: var(--uct-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 14px 20px;
  border-radius: 4px;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.related-list > li > a::after,
.related-nav-list > li > a::after {
  content: "\2192";
  font-size: 22px;
}
@media (max-width: 700px) {
  .related-list,
  .related-nav-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .related-list > li:only-child,
  .related-nav-list > li:only-child {
    width: 100%;
  }
}

.related-section > .section::before,
.related-nav > .section::before {
  background: #fff !important;
}
.related-list > li > a:hover,
.related-nav-list > li > a:hover,
.related-list > li > a:focus-visible,
.related-nav-list > li > a:focus-visible {
  background: var(--uct-primary);
  color: #fff;
}
.related-list > li > a:focus-visible,
.related-nav-list > li > a:focus-visible {
  outline: 2px solid var(--uct-primary);
  outline-offset: 3px;
}
.related-list + .cta-block,
.related-nav-list + .cta-block {
  margin-top: 28px;
}
.related-section:has(+ .section > .cms-cta) .section {
  padding-bottom: 0;
}
.related-section + .section:has(> .cms-cta) {
  background: #f5f5f5;
  max-width: none;
  padding-top: 0;
}
.related-section + .section:has(> .cms-cta) > .cms-cta {
  max-width: 1060px;
  margin: 0 auto;
}

/* 主要取引先 */
.subsection-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--uct-theme-heading, #1a4f7a);
  margin: 24px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--uct-theme-pale-border, #d0e4f7);
}
.subsection-title:first-child { margin-top: 0; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.client-item {
  background: var(--uct-theme-pale, #f5f8fc);
  border-left: 3px solid var(--uct-primary);
  border-radius: 0 4px 4px 0;
  color: #333;
  font-size: 17px;
  line-height: 1.5;
  padding: 8px 12px;
}
.note-text {
  color: #666;
  font-size: 16px;
  margin-top: 14px;
}

/* 会社概要 */
.rich-text-highlight-section { padding-bottom: 8px; }
.rich-text-highlight-section + .section { padding-top: 24px; }
.definition-table-compact { padding-top: 20px; }

.access-map {
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
  overflow: hidden;
}
.access-map iframe {
  border: 0;
  display: block;
  height: 380px;
  width: 100%;
}

@media (max-width: 700px) {
  .access-map iframe { height: 300px; }
}
.rich-text-raw-section { padding-top: 20px; }

.rtos-column-card {
  display: block;
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--uct-border);
  border-radius: 8px;
  background: var(--uct-pale);
  color: inherit;
  text-decoration: none;
}
.rtos-column-card h3 { margin: 0 0 12px; color: var(--uct-heading); font-size: 22px; line-height: 1.6; }
.rtos-column-card p { margin: 0 0 16px; line-height: 1.8; }
.rtos-column-card span { color: var(--uct-primary); font-weight: 600; }
.rtos-column-card:hover,
.rtos-column-card:focus-visible { border-color: var(--uct-primary); text-decoration: none; }
.rtos-column-article { max-width: 960px; margin: 0 auto; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.rtos-column-article h2 { margin: 48px 0 20px; color: var(--uct-heading); font-size: 28px; line-height: 1.6; }
.rtos-column-article h2:first-child { margin-top: 0; }
.rtos-column-article h3 { margin: 32px 0 16px; font-size: 22px; line-height: 1.7; }
.rtos-column-article p { margin: 0 0 24px; }
.rtos-column-article ul,
.rtos-column-article ol { padding-left: 1.6em; margin: 20px 0; }
.rtos-column-article figure { margin: 28px 0; }
.rtos-column-article img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.rtos-column-article table { width: 100%; border-collapse: collapse; }
.rtos-column-article th,
.rtos-column-article td { border: 1px solid var(--uct-border); padding: 12px; text-align: left; vertical-align: top; }
.rtos-column-article th { background: var(--uct-pale); }
.rtos-column-article td:first-child { width: 18%; }
.rtos-column-back { text-align: center; }
.solution-card a:is([href="/services/rtos/lwip.html"], [href="/en/services/rtos/lwip/"]) {
  color: var(--uct-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.solution-card a:is([href="/services/rtos/lwip.html"], [href="/en/services/rtos/lwip/"]):is(:hover, :focus-visible) {
  color: #c00000;
}
.rtos-detail-article { max-width: 960px; margin: 0 auto; overflow-wrap: anywhere; }
.rtos-detail-actions { margin-top: 28px; text-align: center; }
#main-content a.rtos-action-link,
#main-content a.rtos-action-link:visited {
  display: inline-block;
  max-width: 100%;
  padding: 13px 28px;
  border: 1px solid var(--uct-primary);
  border-radius: 5px;
  background: var(--uct-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#main-content a.rtos-action-link:hover,
#main-content a.rtos-action-link:focus-visible {
  background: #c00000;
  border-color: #c00000;
  color: #fff;
}
.cms-richtext .rtos-detail-article table { display: table; table-layout: fixed; width: 100%; }
.cms-richtext .rtos-detail-article thead { display: table-header-group; }
.cms-richtext .rtos-detail-article tbody { display: table-row-group; }
.cms-richtext .rtos-detail-article tr { display: table-row; }
.cms-richtext .rtos-detail-article th,
.cms-richtext .rtos-detail-article td { display: table-cell; width: auto; padding: 10px; overflow-wrap: anywhere; }
.cms-richtext .rtos-column-back a {
  border: 1px solid var(--uct-primary);
}
.cms-richtext .rtos-column-back a,
.cms-richtext .rtos-column-back a:visited {
  color: #fff;
  text-decoration: none;
}
.cms-richtext .rtos-column-back a:hover,
.cms-richtext .rtos-column-back a:focus-visible {
  background: #c00000;
  border-color: #c00000;
  color: #fff;
  text-decoration: none;
}
body:is([data-page-path="/services/rtos/rtos-column-1.html"], [data-page-path="/en/services/rtos/rtos-column-1/"]) .page-hero h1 { font-size: 32px !important; line-height: 1.6; letter-spacing: normal; }
@media (max-width: 700px) {
  .rtos-column-card { padding: 20px; }
  .rtos-column-card h3,
  .rtos-column-article h3 { font-size: 20px; }
  .rtos-column-article h2 { font-size: 24px; }
  .rtos-column-article th,
  .rtos-column-article td { padding: 8px; }
  body:is([data-page-path="/services/rtos/rtos-column-1.html"], [data-page-path="/en/services/rtos/rtos-column-1/"]) .page-hero h1 { font-size: 24px !important; }
}
.philosophy-box {
  background: var(--uct-theme-pale, #f5f8fc);
  border: 1px solid var(--uct-theme-pale-border, #cce0f5);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}
.philosophy-box .label {
  color: var(--uct-primary);
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.philosophy-box .text {
  color: var(--uct-deep);
  font-size: 24px;
  font-weight: bold;
  line-height: 1.8;
}
body[data-page-type="company"] .cms-definition-table,
body[data-page-type="access"] .cms-definition-table {
  border-radius: 0;
  box-shadow: none;
}
body[data-page-type="company"] .cms-definition-table th,
body[data-page-type="company"] .cms-definition-table td,
body[data-page-type="access"] .cms-definition-table th,
body[data-page-type="access"] .cms-definition-table td {
  padding: 12px 16px;
}
body[data-page-type="company"] .cms-definition-table th,
body[data-page-type="access"] .cms-definition-table th { width: 22%; }
body[data-page-type="company"] .cms-definition-table tr:nth-child(even) td,
body[data-page-type="access"] .cms-definition-table tr:nth-child(even) td { background: var(--uct-theme-pale, #fafcff); }
.rich-text-raw-section .subsection-title:first-child { margin-top: 0; }

@media (max-width: 700px) {
  .hd_title img { width: 190px; }
  .home-hero { padding: 60px 20px 52px; }
  .home-hero h1 { font-size: 32px; }
  .home-service-grid { grid-template-columns: 1fr; }
  .services-overview-grid { grid-template-columns: 1fr; }
  .philosophy-box .text { font-size: 20px; }
}

/* ========================================
   カードグリッド（汎用）
   ======================================== */

/* 特徴グリッド（2カラム） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: #fff;
  border-radius: 0;
  border-left: 4px solid var(--uct-primary);
  padding: 20px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.feature-card .feature-headline {
  font-size: 17px;
  font-weight: bold;
  color: var(--uct-primary);
  background: var(--uct-theme-pale, #e8f1fb);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  display: inline-block;
}
.feature-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}

/* ソリューション（2カラム） */
.solution-section { background: #fff; border-top: 1px solid #e8e8e8; }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .solution-grid { grid-template-columns: 1fr; }
}
.solution-card {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.solution-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--uct-theme-pale-border, #cfe0f5);
}
.solution-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}
.solution-card ul {
  list-style: none;
  margin-top: 8px;
}
.solution-card ul li {
  font-size: 17px;
  padding: 4px 0 4px 14px;
  position: relative;
  color: #444;
}
.solution-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--uct-primary);
  font-weight: bold;
}
.solution-card-figure {
  margin: auto 0 0;
  padding-top: 16px;
}
.solution-card-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* 移行・移植サービス（3カラム） */
.migration-section { background: #fff; border-top: 1px solid #e8e8e8; }
.migration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .migration-grid { grid-template-columns: 1fr; }
}
.migration-card {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  padding: 20px;
}
.migration-card .mig-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 10px;
}
.migration-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}

/* 対応マイコン（4カラム） */
.mcu-section { background: #f5f5f5; border-top: 1px solid #e0e0e0; }
.mcu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .mcu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mcu-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.mcu-card .mcu-maker {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #c80000;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 6px 10px;
  text-align: center;
}
.mcu-card .mcu-series {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  padding: 8px 10px;
  background: #f0f0f0;
  text-align: center;
  color: #333;
}
.mcu-note {
  font-size: 16px;
  color: #888;
  margin-top: 8px;
}

/* ソフトウェアカード（2カラム） */
.sw-section { background: #f5f5f5; border-top: 1px solid #e0e0e0; }
.sw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .sw-grid { grid-template-columns: 1fr; }
}
.sw-card {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  padding: 18px 20px;
}
.sw-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--uct-theme-pale-border, #e0e8f5);
}
.sw-card ul { list-style: none; }
.sw-card ul li {
  font-size: 17px;
  padding: 4px 0 4px 14px;
  position: relative;
  color: #444;
  line-height: 1.5;
}
.sw-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--uct-primary);
  font-weight: bold;
}

/* 価値提供カード（3カラム） */
.value-section { background: #fff; border-top: 1px solid #e8e8e8; }
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--uct-primary);
  margin-bottom: 0;
}
.tab-btn {
  padding: 10px 32px;
  font-size: 18px;
  font-weight: bold;
  background: var(--uct-theme-pale, #f0f4f9);
  border: 1px solid var(--uct-theme-pale-border, #c8d8ec);
  border-bottom: none;
  cursor: pointer;
  color: #555;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s, color 0.15s;
  margin-right: 4px;
}
.tab-btn:hover { background: var(--uct-theme-pale-border, #dce8f5); }
.tab-btn.active {
  background: var(--uct-primary);
  color: #fff;
  border-color: var(--uct-primary);
}
.tab-body {
  border: 2px solid var(--uct-primary);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 28px;
  background: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.smart-building-gallery {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.smart-building-gallery-spaced { margin-bottom: 8px; }
.smart-building-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.smart-building-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.smart-building-gallery-5 { grid-template-columns: repeat(5, 1fr); }
.installation-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.installation-card {
  grid-column: span 4;
  background: var(--uct-theme-pale, #f7faff);
  border: 1px solid var(--uct-theme-pale-border, #d8e7f7);
  border-left: 4px solid var(--uct-primary);
  border-radius: 0;
  padding: 14px 16px;
  line-height: 1.65;
  min-width: 0;
}
.installation-card-featured {
  grid-column: span 8;
}
.installation-name {
  font-weight: 700;
  color: var(--uct-primary);
  margin-bottom: 4px;
}
.installation-note {
  font-size: 17px;
  color: #555;
}
.installation-card-link {
  align-content: center;
  color: inherit;
  display: grid;
  min-height: calc(100% + 28px);
  margin: -14px -16px;
  padding: 14px 56px 14px 16px;
  position: relative;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.installation-card-link:hover {
  background: color-mix(in srgb, var(--uct-primary) 8%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uct-primary) 35%, transparent);
}
.installation-card-link:focus-visible {
  outline: 3px solid var(--uct-primary);
  outline-offset: -3px;
}
.installation-link-icon {
  align-items: center;
  background: var(--uct-primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 20px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
}
.smart-building-case-detail {
  padding-top: 56px;
  text-align: center;
}
.smart-building-case-detail h2 {
  color: var(--uct-theme-heading, var(--uct-primary));
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  margin: 0;
}
.smart-building-case-detail h2 span {
  font-size: 0.72em;
}
.smart-building-case-lead {
  font-size: 18px;
  margin: 28px 0 20px;
}
.smart-building-case-video {
  margin: 0 auto;
  max-width: 960px;
}
.smart-building-case-video video {
  background: #000;
  display: block;
  height: auto;
  width: 100%;
}
.installation-lead {
  background: #fff;
  border-left: 4px solid var(--uct-theme-primary, #82a6d5);
  border-radius: 0;
  color: #444;
  line-height: 1.75;
  margin-bottom: 20px;
  padding: 16px 18px;
}
.smart-locker-box {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 22px 24px;
}
.smart-locker-box h3 {
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 22px;
  margin-bottom: 10px;
}
.smart-locker-box p {
  color: #444;
  line-height: 1.75;
}
.smart-locker-results {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.smart-locker-results li {
  background: var(--uct-theme-pale, #f5f8fc);
  border-left: 3px solid var(--uct-primary);
  border-radius: 0 4px 4px 0;
  color: #333;
  font-size: 17px;
  line-height: 1.5;
  padding: 7px 10px;
}
@media (max-width: 700px) {
  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 17px;
  }
  .tab-body { padding: 18px; }
  .smart-building-gallery,
  .smart-building-gallery-3,
  .smart-building-gallery-4,
  .smart-building-gallery-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .installation-list { grid-template-columns: 1fr; }
  .installation-card,
  .installation-card-featured {
    grid-column: 1;
  }
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  padding: 20px;
}
.value-card .value-icon {
  color: var(--uct-primary);
  height: 30px;
  margin-bottom: 10px;
  width: 30px;
}
.value-card .value-icon svg {
  display: block;
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 100%;
}
.value-card .value-icon.value-icon-image {
  height: 80px;
  width: 80px;
}
.value-card .value-icon.value-icon-image img {
  display: block;
  height: auto;
  width: 80px;
}
body:is([data-page-path="/services/smart-building/"], [data-page-path="/en/services/smart-building/"]) .value-card .value-icon.value-icon-image {
  align-items: center;
  display: flex;
  height: 110px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: 110px;
}
body:is([data-page-path="/services/smart-building/"], [data-page-path="/en/services/smart-building/"]) .value-card .value-icon.value-icon-image img {
  margin-left: auto;
  margin-right: auto;
  width: 110px;
}
body:is([data-page-path="/services/smart-building/"], [data-page-path="/en/services/smart-building/"]) .value-card .value-title {
  display: block;
  text-align: center;
  width: 100%;
}
.value-card .value-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 8px;
}

/* Center standalone diagram images without affecting galleries or image cards. */
.cms-richtext :is(p, div):has(> img:only-child),
.section > :is(p, div):has(> img:only-child) {
  text-align: center;
}

.cms-richtext :is(p, div) > img:only-child,
.section > :is(p, div) > img:only-child {
  display: block;
  margin-inline: auto;
}
.value-card .value-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* 適用分野・ユースケース（3カラム） */
.usecase-section { background: #fff; border-top: 1px solid #e8e8e8; }
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .usecase-grid { grid-template-columns: 1fr; }
}
.usecase-card {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  padding: 18px 20px;
}
.usecase-card .uc-icon {
  color: var(--uct-primary);
  height: 28px;
  margin-bottom: 10px;
  width: 28px;
}
.usecase-card .uc-icon svg,
.system-node .sn-icon svg {
  display: block;
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 100%;
}
.usecase-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 8px;
}
body[data-page-path="/services/rtos/middleware.html"] .usecase-card .uc-icon {
  height: 60px;
  margin-left: auto;
  margin-right: auto;
  width: 60px;
}
body[data-page-path="/services/rtos/middleware.html"] .usecase-card h3 {
  text-align: center;
}
.usecase-card p {
  font-size: 17px;
  line-height: 1.65;
  color: #444;
}

/* オプション機能カード（3カラム） */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}
@media (max-width: 700px) { .option-grid { grid-template-columns: 1fr; } }
.option-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.option-card .opt-icon { font-size: 34px; margin-bottom: 10px; }
.option-card .opt-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 8px;
}
.option-card .opt-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.65;
}

/* 課題解決カード（2カラム） */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}
@media (max-width: 700px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.problem-card .prob-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.problem-card .prob-issue {
  font-size: 17px;
  font-weight: bold;
  color: #888;
  margin-bottom: 4px;
}
.problem-card .prob-solution {
  font-size: 17px;
  color: #333;
  line-height: 1.6;
}

/* ココシル：課題と特徴 */
.challenge-lead {
  color: #444;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.challenge-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.challenge-col { min-width: 0; }
.challenge-col-title {
  background: #2e8b57;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 18px;
  padding: 12px 18px;
}
.challenge-col-title.visitor { background: var(--uct-primary); }
.challenge-list {
  background: #fff;
  border: 1px solid #b9dfca;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  list-style: none;
  padding: 8px 18px;
}
.challenge-list.visitor { border-color: var(--uct-theme-pale-border, #c0d4ee); }
.challenge-list li {
  border-bottom: 1px solid #edf2f0;
  color: #444;
  line-height: 1.65;
  padding: 11px 4px 11px 22px;
  position: relative;
}
.challenge-list li:last-child { border-bottom: 0; }
.challenge-list li::before {
  color: #2e8b57;
  content: "✓";
  font-weight: bold;
  left: 2px;
  position: absolute;
}
.challenge-list.visitor li::before { color: var(--uct-primary); }
.challenge-resolve {
  background: #f2faf5;
  border: 1px solid #b9dfca;
  border-radius: 8px;
  color: #355342;
  font-size: 18px;
  line-height: 1.8;
  margin-top: 24px;
  padding: 20px 24px;
  text-align: center;
}
.challenge-resolve span,
.challenge-resolve strong {
  color: #1a6f4f;
  font-weight: bold;
}
.kokosil-feature-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.kokosil-feature-card {
  background: #fff;
  border: 1px solid #cfe5d8;
  border-top: 4px solid #2e8b57;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
}
.kokosil-feature-icon { font-size: 41px; margin-bottom: 10px; }
.kokosil-feature-card h3 {
  color: #1a5f3a;
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.kokosil-feature-card p { color: #555; line-height: 1.75; }
.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.lang-tags span {
  background: #e8f5ee;
  border-radius: 3px;
  color: #1a5f3a;
  font-size: 16px;
  font-weight: bold;
  padding: 3px 8px;
}
.section-compact-top { padding-top: 0; }
.kokosil-section-lead {
  color: #444;
  font-size: 18px;
  line-height: 1.8;
}
.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.region-tag {
  background: #fff;
  border: 1px solid #b2dfc4;
  border-radius: 20px;
  color: #333;
  font-size: 17px;
  padding: 5px 14px;
}
.kokosil-case-grid { margin-top: 20px; }
.kokosil-case-card {
  background: #fff;
  border: 2px solid #1a5f3a;
  border-radius: 8px;
  color: inherit;
  display: block;
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.kokosil-case-card:hover {
  box-shadow: 0 6px 18px rgba(26,95,58,0.16);
  transform: translateY(-2px);
}
.case-badge {
  background: #1a5f3a;
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 9px;
  padding: 3px 12px;
}
.kokosil-case-card .case-label {
  color: #1a5f3a;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 7px;
}
.kokosil-case-card .case-title {
  color: #222;
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.kokosil-case-card .case-desc {
  color: #555;
  font-size: 18px;
  line-height: 1.75;
}
.kokosil-case-card .case-desc p + p { margin-top: 14px; }
.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.case-stat {
  background: #f0f8f3;
  border: 1px solid #b2dfc4;
  border-radius: 6px;
  flex: 1;
  min-width: 110px;
  padding: 10px;
  text-align: center;
}
.case-stat strong {
  color: #1a5f3a;
  display: block;
  font-size: 26px;
  line-height: 1.2;
}
.case-stat span {
  color: #666;
  display: block;
  font-size: 16px;
  margin-top: 3px;
}
.case-read-more {
  color: #1a5f3a;
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  gap: 8px;
  margin-top: 22px;
}
.case-read-more::after {
  content: "→";
  transition: transform 0.2s ease;
}
.kokosil-case-card:hover .case-read-more::after {
  transform: translateX(4px);
}
.app-row {
  align-items: center;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
}
.app-row-label {
  color: #555;
  font-size: 18px;
  font-weight: bold;
}
.app-row a {
  display: block;
  transition: opacity 0.2s;
}
.app-row a:hover { opacity: 0.8; }
.app-row img {
  height: 36px;
  width: auto;
}
.external-form-card {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 32px;
  text-align: center;
}
.external-form-card .form-notice {
  text-align: left;
}
.external-form-card h2 {
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 24px;
  margin: 24px 0 10px;
}
.external-form-card > p {
  color: #555;
  line-height: 1.7;
}
.external-form-link {
  background: var(--uct-primary);
  border-radius: 5px;
  color: #fff;
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  margin-top: 22px;
  padding: 13px 28px;
}
.external-form-link:hover { background: var(--uct-theme-primary, #0d5a9a); }
.external-form-page-link { max-width: 100%; }
.external-form-link-secondary {
  background: transparent;
  border: 1px solid var(--uct-primary);
  color: var(--uct-primary);
  font-size: 17px;
  margin-top: 16px;
  padding: 9px 18px;
}
.external-form-link-secondary:hover {
  background: var(--uct-theme-pale, #eaf2fb);
  color: var(--uct-primary);
}
.external-form-pending {
  background: #fff8e8;
  border: 1px solid #f0d080;
  border-radius: 6px;
  margin-top: 22px;
  padding: 14px 18px;
}
.external-form-help {
  font-size: 17px;
  margin-top: 22px;
}
.external-form-help a {
  color: var(--uct-primary);
  text-decoration: underline;
}
@media (max-width: 700px) {
  .challenge-cols,
  .kokosil-feature-cards { grid-template-columns: 1fr; }
  .challenge-resolve { text-align: left; }
  .app-row { align-items: flex-start; flex-direction: column; }
  .external-form-card { padding: 24px 18px; }
}

/* 活用事例カード（2カラム） */
.case-section { background: #fff; border-top: 1px solid #e8e8e8; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}
@media (max-width: 700px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  padding: 20px;
}
.case-card .case-label { font-size: 14px; color: #888; margin-bottom: 6px; }
.case-card .case-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 8px;
}
.case-card .case-desc { font-size: 17px; color: #444; line-height: 1.65; }

/* 活用事例リスト（2カラム・シンプル） */
.case-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .case-list { grid-template-columns: 1fr; }
}
.case-list li {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px 20px;
}
.case-list li .case-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 6px;
}
.case-list li .case-desc { font-size: 16px; color: #666; line-height: 1.6; }

/* ========================================
   製品バナーグリッド（トップページ）
   ======================================== */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .banner-grid { grid-template-columns: 1fr; }
}
.banner-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}
.banner-card .banner-img {
  background: var(--uct-theme-pale-border, #c8d8e8);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.banner-card .banner-body { padding: 16px 18px; flex: 1; }
.banner-card .banner-title {
  font-size: 19px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 8px;
}
.banner-card .banner-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}
.banner-card .banner-link {
  display: block;
  text-align: right;
  font-size: 16px;
  color: var(--uct-primary);
  padding: 0 18px 14px;
  text-decoration: underline;
}
.product-category {
  grid-column: 1 / -1;
  font-size: 17px;
  font-weight: bold;
  color: #555;
  background: var(--uct-theme-pale, #f0f4fa);
  border-left: 4px solid var(--uct-primary);
  padding: 6px 12px;
  margin-bottom: -8px;
}

/* ========================================
   TOPICS（ニュース・お知らせ）
   ======================================== */
.topics-section { background: #fff; border-top: 1px solid #e8e8e8; }
.topics-list {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0 24px;
}
.topics-list li {
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 92px minmax(86px, auto) minmax(0, 1fr);
  align-items: flex-start;
  gap: 16px;
}
.topics-list li:first-child { border-top: 1px solid #e8e8e8; }
.topics-date { font-size: 16px; color: #888; white-space: nowrap; margin-top: 2px; }
.topics-cat {
  justify-self: start;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--uct-theme-pale, #e8f1fb);
  color: var(--uct-primary);
  white-space: nowrap;
  margin-top: 1px;
}
.topics-title { font-size: 18px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.topics-title a { color: #333; }
.topics-title a:hover { text-decoration: underline; color: var(--uct-primary); }
.more-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 17px;
  color: var(--uct-primary);
  text-decoration: underline;
}
.news-list-section {
  background: #fff;
}
.news-card-list {
  display: grid;
  gap: 18px;
}
.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #dfe8f3);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.news-card-image {
  display: block;
  background: none;
  min-height: 0;
}
.news-card-image img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
}
.news-card-image-placeholder {
  background: linear-gradient(135deg, var(--uct-theme-pale, #e8f1fb) 0%, var(--uct-theme-pale-border, #cfe0f5) 100%);
}
.news-card-body {
  padding: 18px 20px 18px 0;
}
.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.news-card-title {
  color: var(--uct-heading);
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.news-card-title a:hover {
  color: var(--uct-primary);
  text-decoration: underline;
}
.news-card-excerpt {
  color: #555;
  font-size: 17px;
  line-height: 1.7;
}
.news-eyecatch-section {
  padding-bottom: 0;
}
.news-eyecatch {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #dfe8f3);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.news-eyecatch img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
.cms-richtext .wp-block-image {
  margin: 36px auto;
}
.cms-richtext figure {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}
.cms-richtext figure img {
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}
.cms-richtext .wp-block-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.cms-richtext figcaption {
  color: #666;
  font-size: 17px;
  line-height: 1.6;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .topics-list { padding: 0 18px; }
  .topics-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
  }
  .topics-title { grid-column: 1 / -1; }
  .news-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news-card-body {
    padding: 16px 18px 18px;
  }
}

/* ========================================
   実績数値ストリップ
   ======================================== */
.achievement-strip {
  background: var(--uct-deep);
  color: #fff;
  padding: 22px 20px;
}
.achievement-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.achievement-item { text-align: center; }
.achievement-num {
  font-size: 31px;
  font-weight: bold;
  color: var(--uct-theme-primary, #7ec8f5);
  line-height: 1.2;
}
.achievement-label { font-size: 16px; opacity: 0.8; margin-top: 4px; }

/* ========================================
   スペック表
   ======================================== */
.spec-section { background: #fff; border-top: 1px solid #e8e8e8; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  margin-bottom: 10px;
}
.spec-table th {
  background: var(--uct-theme-pale, #e8f1fb);
  color: var(--uct-primary);
  font-weight: bold;
  text-align: left;
  padding: 10px 16px;
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  width: 28%;
}
.spec-table td {
  background: #fff;
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  line-height: 1.6;
  color: #333;
}
body[data-page-path="/services/rtos/iot-engine.html"] .spec-table {
  border: 1px solid #e80000;
}
body[data-page-path="/services/rtos/iot-engine.html"] .spec-table th,
body[data-page-path="/services/rtos/iot-engine.html"] .spec-table td {
  border: 1px solid #e80000;
}
body[data-page-path="/services/rtos/iot-engine.html"] .spec-table tbody tr td,
body[data-page-path="/services/rtos/iot-engine.html"] .spec-table tbody tr:nth-child(even) td {
  background: #fff !important;
}
.spec-note { font-size: 16px; color: #888; margin-top: 6px; }

/* ========================================
   開発キットカード（ダークヘッダー）
   ======================================== */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .kit-grid { grid-template-columns: 1fr; }
}
.kit-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}
.kit-card-header {
  background: var(--uct-deep);
  color: #fff;
  padding: 14px 20px;
}
.kit-card-header .kit-name { font-size: 18px; font-weight: bold; margin-bottom: 4px; }
.kit-card-header .kit-mcu { font-size: 16px; opacity: 0.8; }
.kit-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kit-card-body p {
  font-size: 17px;
  line-height: 1.65;
  color: #444;
  margin-bottom: 12px;
}
.kit-detail-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--uct-primary);
  font-size: 17px;
  font-weight: bold;
  border-top: 1px dashed var(--uct-theme-pale-border, #e0e8f5);
  transition: color 0.2s;
}
.kit-detail-link:hover { color: var(--uct-deep); text-decoration: underline; }
.kit-section {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}
.kit-photo {
  border-radius: 4px 4px 0 0;
  display: block;
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.board-detail-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}
.board-detail-figure {
  margin: 0;
}
.board-detail-figure img {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: auto;
  padding: 20px;
  width: 100%;
}
.board-detail-figure figcaption {
  color: #666;
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
}
.system-section {
  background: #fff;
  border-top: 1px solid #e8e8e8;
}
.system-flow {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin-bottom: 28px;
}
.system-node {
  background: var(--uct-theme-pale, #e8f1fb);
  border: 2px solid var(--uct-primary);
  border-radius: 8px;
  min-width: 130px;
  padding: 16px 20px;
  text-align: center;
}
.system-node.cloud {
  background: var(--uct-theme-pale, #f0f6ff);
  border-color: var(--uct-theme-primary, #5b9fd4);
}
.system-node .sn-icon {
  color: var(--uct-primary);
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  width: 48px;
}
.system-node .sn-label {
  color: var(--uct-primary);
  font-size: 16px;
  font-weight: bold;
}
.system-arrow {
  color: #888;
  font-size: 0;
  height: 58px;
  padding: 0 14px;
  position: relative;
  text-align: center;
  white-space: nowrap;
  width: 170px;
}
.system-arrow::before {
  background: #888;
  content: "";
  height: 3px;
  left: 14px;
  position: absolute;
  right: 24px;
  top: 45px;
}
.system-arrow::after {
  border-bottom: 7px solid transparent;
  border-left: 11px solid #888;
  border-top: 7px solid transparent;
  content: "";
  height: 0;
  position: absolute;
  right: 13px;
  top: 39.5px;
  width: 0;
}
.system-arrow .arrow-label {
  color: #888;
  display: block;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}
.system-section .section > p {
  max-width: none !important;
  width: 100%;
}
.product-visual {
  align-items: flex-start;
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}
.product-visual img {
  border: 1px solid #ddd;
  border-radius: 6px;
  max-width: 340px;
  width: 100%;
}
.product-visual-text {
  flex: 1;
}
.product-spec-table {
  border-collapse: collapse;
  font-size: 18px;
  margin-top: 16px;
  width: 100%;
}
.product-spec-table th,
.product-spec-table td {
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  padding: 9px 14px;
  text-align: left;
}
.product-spec-table th {
  background: var(--uct-theme-pale-border, #d0e4f7);
  color: var(--uct-theme-heading, #1a4f7a);
  width: 34%;
}
.product-spec-table tr:nth-child(even) td {
  background: var(--uct-theme-pale, #f5f9ff);
}
@media (max-width: 720px) {
  .board-detail-grid {
    grid-template-columns: 1fr;
  }
  .board-detail-figure img {
    padding: 14px;
  }
  .product-visual {
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .system-flow {
    flex-direction: column;
  }
  .system-arrow {
    height: 92px;
    transform: none;
    width: 170px;
  }
  .system-arrow::before {
    bottom: 22px;
    height: auto;
    left: calc(50% - 1.5px);
    right: auto;
    top: 38px;
    width: 3px;
  }
  .system-arrow::after {
    border-bottom: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 11px solid #888;
    bottom: 11px;
    left: calc(50% - 7px);
    right: auto;
    top: auto;
  }
}

/* ========================================
   キット詳細ページ レイアウト
   ======================================== */

/* セクションヘッダー（詳細ページ用） */
.kit-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--uct-primary);
  flex-wrap: wrap;
}
.kit-section-header h2 { font-size: 24px; font-weight: bold; color: var(--uct-deep); }
.kit-section-header .kit-mcu-badge {
  font-size: 16px;
  color: #555;
  background: var(--uct-theme-pale, #e8f1fb);
  border: 1px solid var(--uct-theme-pale-border, #c0d8f0);
  border-radius: 3px;
  padding: 3px 10px;
}
.kit-section-header .kit-manual-badge {
  font-size: 16px;
  color: #197a4a;
  background: #e8f7f0;
  border: 1px solid #a3d9bc;
  border-radius: 3px;
  padding: 3px 10px;
}

/* ハード/ソフト 2カラム */
.kit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .kit-columns { grid-template-columns: 1fr; }
}
.kit-col-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.kit-col-header {
  background: var(--uct-deep);
  color: #fff;
  padding: 12px 18px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.kit-col-header.soft { background: var(--uct-primary); }
.kit-col-body { padding: 16px 18px; }

/* コンポーネントブロック */
.component-block {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e8e8e8;
}
.component-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.component-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.component-title .badge {
  font-size: 14px;
  font-weight: normal;
  background: #e8f7f0;
  color: #197a4a;
  border: 1px solid #a3d9bc;
  border-radius: 2px;
  padding: 1px 6px;
}
.component-title .badge-opt {
  font-size: 14px;
  font-weight: normal;
  background: #f5f5f5;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 1px 6px;
}
.component-list { list-style: none; padding-left: 4px; }
.component-list li {
  font-size: 17px;
  color: #444;
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.55;
}
.component-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--uct-primary);
  font-weight: bold;
}
.component-list li.sub { padding-left: 30px; color: #666; font-size: 16px; }
.component-list li.sub::before { left: 14px; color: #aaa; content: "·"; }

/* ========================================
   ミドルウェア製品カード（ブルーヘッダー）
   ======================================== */
.mw-section { background: #fff; }
.mw-product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.mw-product-header {
  background: var(--uct-primary);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mw-product-header .mw-name { font-size: 24px; font-weight: bold; }
.mw-product-header .mw-sub { font-size: 18px; opacity: 0.85; }
.mw-product-body { padding: 20px 24px; }
.mw-product-desc {
  font-size: 17px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 14px;
}
.mw-product-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
@media (max-width: 600px) {
  .mw-product-features { grid-template-columns: 1fr; }
}
.mw-product-features li {
  font-size: 17px;
  padding: 4px 0 4px 16px;
  position: relative;
  color: #333;
  line-height: 1.5;
}
.mw-product-features li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--uct-primary);
  font-weight: bold;
}

body[data-page-path="/services/rtos/middleware.html"] .mw-product-body > div:has(a[href="/assets/downloads/UCT6LoWPAN_Devkit_2206.pdf"]) {
  border-top: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  margin-top: 28px !important;
  padding-top: 24px;
  text-align: center;
}

body[data-page-path="/services/rtos/middleware.html"] .mw-product-body > div:has(a[href="/assets/downloads/UCT6LoWPAN_Devkit_2206.pdf"]) > a {
  display: inline-block;
}

body[data-page-path="/services/rtos/middleware.html"] .mw-product-body > div:has(a[href="/assets/downloads/UCT6LoWPAN_Devkit_2206.pdf"]) img {
  margin-inline: auto;
}

body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .smart-building-system-figure {
  margin: 0 auto 36px;
  text-align: center;
}

body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .smart-building-system-figure img {
  border-radius: 6px;
  display: block;
  margin-inline: auto;
  max-width: 800px;
  width: 100%;
}

body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .smart-building-system-figure + .cms-cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .cms-card > h3 {
  border-left: 4px solid var(--uct-primary);
  color: var(--uct-theme-heading, #1a4f7a);
  font-size: 22px;
  margin: 0 0 12px;
  padding-left: 10px;
}

body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .cms-card-image {
  display: block;
  height: auto;
  margin: auto auto 0;
  overflow: visible;
  padding-top: 10px;
  width: 100%;
}

body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .cms-card-image img {
  aspect-ratio: auto;
  border-radius: 0;
  display: block;
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  width: 100%;
}

@media (max-width: 900px) {
  body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .smart-building-system-figure + .cms-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body:is([data-page-path="/services/smart-building/tron-os/"], [data-page-path="/en/services/smart-building/tron-os/"]) .smart-building-system-figure + .cms-cards-grid {
    grid-template-columns: 1fr;
  }
}
.mw-badge {
  display: inline-block;
  font-size: 14px;
  background: #e8f7f0;
  color: #197a4a;
  border: 1px solid #a3d9bc;
  border-radius: 3px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ========================================
   アーキテクチャ・ソフトウェアスタック
   ======================================== */
.arch-section { background: #f5f5f5; border-top: 1px solid #e0e0e0; }
.arch-box {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
}
.arch-box h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--uct-theme-pale-border, #e0e8f5);
  text-align: center;
}
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.arch-layer {
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 17px;
  font-weight: bold;
}
.arch-layer.app  { background: #e8f7f0; border: 1px solid #a3d9bc; color: #197a4a; }
.arch-layer.mw   { background: var(--uct-theme-pale, #e8f1fb); border: 2px solid var(--uct-primary); color: var(--uct-primary); }
.arch-layer.rtos { background: var(--uct-deep); color: #fff; }
.arch-layer.hw   { background: #555; color: #fff; }
.arch-arrow {
  color: #888;
  height: 38px;
  text-align: center;
}
.arch-arrow svg {
  display: block;
  fill: none;
  height: 36px;
  margin-inline: auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  width: 24px;
}

/* ========================================
   製品カード（カラーヘッダー）
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}
.product-card-header {
  padding: 20px 24px 16px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
}
.product-card-header.blue { background: var(--uct-primary); }
.product-card-header.blue-light { background: var(--uct-theme-primary, #82a6d5); }
.product-card-header .label {
  font-size: 14px;
  font-weight: normal;
  opacity: 0.85;
  margin-bottom: 4px;
}
.product-card-body { padding: 20px 24px; }
.product-card-body ul {
  list-style: none;
  margin-top: 8px;
}
.product-card-body ul li {
  padding: 6px 0 6px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 17px;
  position: relative;
}
.product-card-body ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--uct-primary);
  font-weight: bold;
}
body[data-page-path="/services/smart-building/"] .product-card {
  border: 1px solid var(--uct-theme-pale-border, #c8ddf0);
  box-shadow: none;
}
body[data-page-path="/services/smart-building/"] .product-card-wide {
  grid-column: 1 / -1;
}
body[data-page-path="/services/smart-building/"] .product-card-header.blue {
  background: var(--uct-primary);
}
body[data-page-path="/services/smart-building/"] .product-card-header.blue-light {
  background: var(--uct-theme-heading, #1a4f7a);
}
body[data-page-path="/services/smart-building/"] .product-card-body ul li::before {
  color: var(--uct-theme-heading, #1a4f7a);
}

/* ========================================
   対象顧客タブ
   ======================================== */
.audience-section { background: #fff; border-top: 1px solid #e8e8e8; }
.audience-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--uct-primary);
  margin-bottom: 28px;
}
.audience-tab {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  background: var(--uct-theme-pale, #f0f6ff);
  color: var(--uct-primary);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-bottom: none;
}
.audience-tab.active { background: var(--uct-primary); color: #fff; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.audience-card .aud-header {
  padding: 14px 18px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}
.audience-card .aud-body { background: #fff; padding: 16px 18px; }
.audience-card .aud-body ul { list-style: none; margin: 0; }
.audience-card .aud-body ul li {
  font-size: 17px;
  padding: 5px 0 5px 14px;
  position: relative;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}
.audience-card .aud-body ul li:last-child { border-bottom: none; }
.audience-card .aud-body ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ========================================
   AI・強調セクション
   ======================================== */
.ai-section { background: var(--uct-theme-pale, #f0f6ff); border-top: 1px solid var(--uct-theme-pale-border, #cfe0f5); }
.ai-highlight {
  background: #fff;
  border-left: 4px solid var(--uct-primary);
  border-radius: 0;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.ai-highlight h3 {
  font-size: 19px;
  font-weight: bold;
  color: var(--uct-primary);
  margin-bottom: 8px;
}
.ai-highlight p { font-size: 17px; line-height: 1.7; color: #444; }

/* ========================================
   CTAブロック
   ======================================== */
/* ========================================
   フォーム共通
   ======================================== */
.form-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
@media (max-width: 700px) {
  .form-wrap { padding: 24px 18px; }
}
.form-notice {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 17px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 28px;
}
.form-notice a { color: var(--uct-primary); text-decoration: underline; }

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.form-table th,
.form-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--uct-theme-pale, #eef2f8);
  vertical-align: top;
  font-size: 18px;
}
.form-table th {
  width: 200px;
  font-weight: bold;
  color: var(--uct-heading);
  background: var(--uct-theme-pale, #f6faff);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .form-table, .form-table tbody, .form-table tr,
  .form-table th, .form-table td { display: block; width: 100%; }
  .form-table th { border-bottom: none; padding-bottom: 6px; }
}
.required-badge {
  display: inline-block;
  background: #c00;
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: normal;
}
.form-input {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--uct-theme-pale-border, #c5d8ee);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 18px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: var(--uct-primary); box-shadow: 0 0 0 2px rgba(26,111,175,0.15); }
.form-input-wide {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--uct-theme-pale-border, #c5d8ee);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 18px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
.form-input-wide:focus { outline: none; border-color: var(--uct-primary); box-shadow: 0 0 0 2px rgba(26,111,175,0.15); }
.form-input-sm {
  width: 180px;
  border: 1px solid var(--uct-theme-pale-border, #c5d8ee);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 18px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
.form-input-sm:focus { outline: none; border-color: var(--uct-primary); box-shadow: 0 0 0 2px rgba(26,111,175,0.15); }
.form-textarea {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--uct-theme-pale-border, #c5d8ee);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 18px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
}
.form-textarea:focus { outline: none; border-color: var(--uct-primary); box-shadow: 0 0 0 2px rgba(26,111,175,0.15); }
.form-check-group {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.form-check-group li label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  color: #444;
  cursor: pointer;
}
.form-hint {
  font-size: 16px;
  color: #888;
  margin-top: 4px;
}
.zip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-agree-row {
  margin: 20px 0 28px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-agree-row a { color: var(--uct-primary); text-decoration: underline; }
.form-submit {
  display: block;
  margin: 0 auto;
  background: var(--uct-primary);
  color: #fff;
  font-size: 19px;
  font-weight: bold;
  padding: 14px 60px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--uct-theme-primary, #0d5a9a); }
.reply-note {
  background: var(--uct-theme-pale, #f6faff);
  border: 1px solid var(--uct-theme-pale-border, #cfe0f5);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 17px;
  color: #555;
  line-height: 1.75;
  margin-top: 32px;
}
.reply-note a { color: var(--uct-primary); }

/* ========================================
   全ページ共通テーブル
   ======================================== */
.cms-definition-table,
.cms-richtext table,
.wp-block-table table,
.compare-table,
.api-table,
.spec-table,
.product-spec-table,
.form-table {
  background: #fff;
  border-collapse: collapse;
  border-radius: 0;
  box-shadow: none;
  color: #333;
  font-size: 18px;
  line-height: 1.7;
  width: 100%;
}
.cms-definition-table th,
.cms-definition-table td,
.cms-richtext table th,
.cms-richtext table td,
.wp-block-table table th,
.wp-block-table table td,
.compare-table th,
.compare-table td,
.api-table th,
.api-table td,
.spec-table th,
.spec-table td,
.product-spec-table th,
.product-spec-table td,
.form-table th,
.form-table td {
  background: #fff;
  border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  color: #333;
  font-size: 18px;
  line-height: 1.7;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.cms-definition-table th,
.cms-richtext table th,
.wp-block-table table th,
.compare-table th,
.api-table th,
.spec-table th,
.product-spec-table th,
.form-table th {
  background: var(--uct-theme-pale, #eaf2fb);
  background-color: var(--uct-theme-pale, #eaf2fb) !important;
  color: var(--uct-theme-heading, #1a4f7a);
  font-weight: bold;
  white-space: nowrap;
}
.cms-definition-table th,
.cms-richtext table tbody td:first-child:not([colspan]),
.wp-block-table table tbody td:first-child:not([colspan]),
.spec-table th,
.product-spec-table th,
.form-table th {
  width: 22%;
}
.cms-richtext table tbody td:first-child:not([colspan]),
.wp-block-table table tbody td:first-child:not([colspan]) {
  background: var(--uct-theme-pale, #eaf2fb);
  background-color: var(--uct-theme-pale, #eaf2fb) !important;
  color: var(--uct-theme-heading, #1a4f7a);
  font-weight: bold;
}
.cms-definition-table tr:nth-child(even) td,
.cms-richtext table tbody tr:nth-child(even) td:not(:first-child),
.wp-block-table table tbody tr:nth-child(even) td:not(:first-child),
.compare-table tbody tr:nth-child(even) td:not(:first-child),
.api-table tbody tr:nth-child(even) td:not(:first-child),
.spec-table tbody tr:nth-child(even) td,
.product-spec-table tbody tr:nth-child(even) td,
.form-table tbody tr:nth-child(even) td {
  background: var(--uct-theme-pale, #fafcff);
  background-color: var(--uct-theme-pale, #fafcff) !important;
}
.compare-table tbody tr:nth-child(even),
.api-table tbody tr:nth-child(even) {
  background: transparent;
}
@media (max-width: 700px) {
  .cms-richtext figure.wp-block-table,
  .cms-richtext .wp-block-table {
    overflow-x: visible;
    width: 100%;
  }
  .cms-definition-table,
  .cms-definition-table tbody,
  .cms-definition-table tr,
  .cms-definition-table th,
  .cms-definition-table td,
  .cms-richtext table,
  .cms-richtext table thead,
  .cms-richtext table tbody,
  .cms-richtext table tr,
  .cms-richtext table th,
  .cms-richtext table td,
  .wp-block-table table,
  .wp-block-table table thead,
  .wp-block-table table tbody,
  .wp-block-table table tr,
  .wp-block-table table th,
  .wp-block-table table td,
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td,
  .api-table,
  .api-table thead,
  .api-table tbody,
  .api-table tr,
  .api-table th,
  .api-table td,
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td,
  .product-spec-table,
  .product-spec-table tbody,
  .product-spec-table tr,
  .product-spec-table th,
  .product-spec-table td,
  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table th,
  .form-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .cms-definition-table tr,
  .cms-richtext table tr,
  .wp-block-table table tr,
  .compare-table tr,
  .api-table tr,
  .spec-table tr,
  .product-spec-table tr,
  .form-table tr {
    border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  }
  .cms-definition-table tr + tr,
  .cms-richtext table tr + tr,
  .wp-block-table table tr + tr,
  .compare-table tr + tr,
  .api-table tr + tr,
  .spec-table tr + tr,
  .product-spec-table tr + tr,
  .form-table tr + tr {
    border-top: 0;
  }
  .cms-definition-table th,
  .cms-definition-table td,
  .cms-richtext table th,
  .cms-richtext table td,
  .wp-block-table table th,
  .wp-block-table table td,
  .compare-table th,
  .compare-table td,
  .api-table th,
  .api-table td,
  .spec-table th,
  .spec-table td,
  .product-spec-table th,
  .product-spec-table td,
  .form-table th,
  .form-table td {
    border: 0;
    font-size: 17px;
    line-height: 1.65;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .cms-definition-table th,
  .cms-definition-table td:first-child,
  .cms-richtext table th,
  .cms-richtext table td:first-child,
  .wp-block-table table th,
  .wp-block-table table td:first-child,
  .compare-table th,
  .compare-table td:first-child,
  .api-table th,
  .api-table td:first-child,
  .spec-table th,
  .spec-table td:first-child,
  .product-spec-table th,
  .product-spec-table td:first-child,
  .form-table th,
  .form-table td:first-child {
    background: var(--uct-theme-pale, #eaf2fb);
    background-color: var(--uct-theme-pale, #eaf2fb) !important;
    border-bottom: 1px solid var(--uct-theme-pale-border, #d0e4f7);
    color: var(--uct-theme-heading, #1a4f7a);
    font-weight: bold;
    width: 100%;
  }
  .cms-definition-table td:not(:first-child),
  .cms-richtext table td:not(:first-child),
  .wp-block-table table td:not(:first-child),
  .compare-table td:not(:first-child),
  .api-table td:not(:first-child),
  .spec-table td:not(:first-child),
  .product-spec-table td:not(:first-child),
  .form-table td:not(:first-child) {
    background: #fff;
    background-color: #fff !important;
  }
}

/* ========================================
   フッター
   ======================================== */
footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 40px 20px 20px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin-bottom: 24px;
}
.footer-nav a { font-size: 17px; color: #ccc; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 16px; color: #666; text-align: center; margin-top: 16px; }

/* ========================================
   ハンバーガーメニュー（スマートフォン対応）
   ======================================== */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 12px;
  flex-shrink: 0;
}
#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
#hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  /* ハンバーガーボタンを表示 */
  #hamburger { display: flex; }

  /* グローバルメニューは初期状態で非表示 */
  #global_menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    z-index: 99;
    border-top: 2px solid var(--uct-primary);
  }
  #global_menu.open { display: block; }

  /* メニュー開放時はボディのスクロールを禁止 */
  body.menu-open { overflow: hidden; }

  /* 縦並びリスト */
  #global_menu_ul {
    flex-direction: column;
    padding: 8px 0 32px;
  }
  #global_menu_ul > li > a {
    line-height: 1.4;
    padding: 16px 24px;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* サブメニューの矢印 */
  .menu-item-has-children > a::after {
    content: '▾';
    font-size: 16px;
    opacity: 0.6;
    margin-left: 6px;
    transition: transform 0.2s;
  }
  .menu-item-has-children.open > a::after {
    transform: rotate(-180deg);
  }

  /* hoverによるサブメニュー表示を無効化 */
  .menu-item-has-children:hover .sub-menu { display: none; }

  /* タップでトグル */
  .menu-item-has-children.open .sub-menu { display: block; }

  /* モバイル用サブメニュースタイル */
  .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: var(--uct-theme-pale, #f5f8ff);
    min-width: 100%;
    border-bottom: 1px solid #e8e8e8;
  }
  .sub-menu li a {
    padding: 12px 24px 12px 40px;
    font-size: 18px;
    border-bottom: 1px solid #ebebeb;
  }
  .sub-menu li:last-child a { border-bottom: none; }
  .sub-menu li[style] { padding: 8px 24px 4px 40px; }
}

/* テーブル幅とモバイル表示の最終調整 */
.cms-richtext figure.wp-block-table,
.wp-block-table,
.cms-richtext .table-wrap {
  max-width: none;
  width: 100%;
}
.cms-definition-table,
.cms-richtext table,
.wp-block-table table,
.compare-table,
.api-table,
.spec-table,
.product-spec-table,
.form-table {
  max-width: none;
  width: 100% !important;
}
@media (max-width: 700px) {
  .cms-richtext figure,
  .cms-richtext figure.wp-block-table,
  .wp-block-table,
  .cms-richtext .table-wrap {
    max-width: none;
    overflow-x: visible;
    width: 100%;
  }
  .cms-definition-table,
  .cms-definition-table thead,
  .cms-definition-table tbody,
  .cms-definition-table tr,
  .cms-definition-table th,
  .cms-definition-table td,
  .cms-richtext table,
  .cms-richtext table thead,
  .cms-richtext table tbody,
  .cms-richtext table tr,
  .cms-richtext table th,
  .cms-richtext table td,
  .wp-block-table table,
  .wp-block-table table thead,
  .wp-block-table table tbody,
  .wp-block-table table tr,
  .wp-block-table table th,
  .wp-block-table table td,
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td,
  .api-table,
  .api-table thead,
  .api-table tbody,
  .api-table tr,
  .api-table th,
  .api-table td,
  .spec-table,
  .spec-table thead,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td,
  .product-spec-table,
  .product-spec-table thead,
  .product-spec-table tbody,
  .product-spec-table tr,
  .product-spec-table th,
  .product-spec-table td,
  .form-table,
  .form-table thead,
  .form-table tbody,
  .form-table tr,
  .form-table th,
  .form-table td {
    display: block;
    max-width: none;
    min-width: 0;
    width: 100% !important;
  }
  .cms-definition-table tr,
  .cms-richtext table tr,
  .wp-block-table table tr,
  .compare-table tr,
  .api-table tr,
  .spec-table tr,
  .product-spec-table tr,
  .form-table tr {
    border: 1px solid var(--uct-theme-pale-border, #d0e4f7);
  }
  .cms-definition-table tr + tr,
  .cms-richtext table tr + tr,
  .wp-block-table table tr + tr,
  .compare-table tr + tr,
  .api-table tr + tr,
  .spec-table tr + tr,
  .product-spec-table tr + tr,
  .form-table tr + tr {
    border-top: 0;
  }
  .cms-definition-table th,
  .cms-definition-table td,
  .cms-richtext table th,
  .cms-richtext table td,
  .wp-block-table table th,
  .wp-block-table table td,
  .compare-table th,
  .compare-table td,
  .api-table th,
  .api-table td,
  .spec-table th,
  .spec-table td,
  .product-spec-table th,
  .product-spec-table td,
  .form-table th,
  .form-table td {
    border: 0;
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    padding: 10px 12px;
    white-space: normal;
  }
  .cms-definition-table th,
  .cms-definition-table td:first-child,
  .cms-richtext table th,
  .cms-richtext table td:first-child,
  .wp-block-table table th,
  .wp-block-table table td:first-child,
  .compare-table th,
  .compare-table td:first-child,
  .api-table th,
  .api-table td:first-child,
  .spec-table th,
  .spec-table td:first-child,
  .product-spec-table th,
  .product-spec-table td:first-child,
  .form-table th,
  .form-table td:first-child {
    background: var(--uct-theme-pale, #eaf2fb);
    background-color: var(--uct-theme-pale, #eaf2fb) !important;
    border-bottom: 1px solid var(--uct-theme-pale-border, #d0e4f7);
    color: var(--uct-theme-heading, #1a4f7a);
    font-weight: bold;
    width: 100% !important;
  }
  .cms-definition-table td:not(:first-child),
  .cms-richtext table td:not(:first-child),
  .wp-block-table table td:not(:first-child),
  .compare-table td:not(:first-child),
  .api-table td:not(:first-child),
  .spec-table td:not(:first-child),
  .product-spec-table td:not(:first-child),
  .form-table td:not(:first-child) {
    background: #fff;
    background-color: #fff !important;
  }
}

/* Keep RTOS footers on the same site-wide palette as the home pages. */
body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) footer {
  --chub-primary: #20aee5;
  background: #eee;
  color: #000;
}

body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) .footer-brand > a,
body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) .footer-brand p,
body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) .footer-nav a,
body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) .footer-copy {
  color: #000;
}

body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) .footer-copy {
  border-top-color: #ccc;
}

body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) .footer-nav a:hover,
body:is(
  [data-page-path^="/services/rtos/"],
  [data-page-path^="/en/services/rtos/"]
) .footer-nav a:focus-visible {
  background: transparent;
  color: #20aee5;
  padding-left: 0;
  text-decoration: underline;
}

/* ========================================
   2026 Sony-inspired editorial refresh
   Key colors remain unchanged.
   ======================================== */
:root {
  --uct-primary: #20aee5;
  --uct-deep: #0d3b6e;
  --uct-heading: #1a3a5c;
  --uct-text: #333;
  --uct-subtext: #555;
  --uct-pale: var(--uct-theme-pale, #f2f7fd);
  --uct-border: var(--uct-theme-pale-border, #d0e4f7);
  --uct-surface: #fff;
  --uct-container: 1200px;
  --uct-gutter: clamp(20px, 5vw, 80px);
  --uct-section-space: clamp(48px, 6vw, 88px);
  --uct-transition: 220ms ease-out;
}

body[data-page-path^="/services/rtos/"] {
  --uct-primary: #e80000;
  --uct-deep: #e80000;
  --uct-heading: #e80000;
  --uct-pale: #ffe8e8;
  --uct-border: #ffe8e8;
  --uct-theme-primary: #e80000;
  --uct-theme-heading: #e80000;
  --uct-theme-pale: #ffe8e8;
  --uct-theme-pale-border: #ffe8e8;
  --chub-primary: #e80000;
}

body[data-page-path^="/en/services/rtos/"] {
  --uct-primary: #e80000;
  --uct-deep: #e80000;
  --uct-heading: #e80000;
  --uct-pale: #ffe8e8;
  --uct-border: #ffe8e8;
  --uct-theme-primary: #e80000;
  --uct-theme-heading: #e80000;
  --uct-theme-pale: #ffe8e8;
  --uct-theme-pale-border: #ffe8e8;
  --chub-primary: #e80000;
}

/* Replace legacy inline blue accents in RTOS content only. */
body[data-page-path^="/services/rtos/"] #main-content [style*="background:#0066b1"],
body[data-page-path^="/services/rtos/"] #main-content [style*="background:#1a6faf"],
body[data-page-path^="/services/rtos/"] #main-content [style*="background:#1a4f7a"],
body[data-page-path^="/services/rtos/"] #main-content [style*="background:#0d3b6e"],
body[data-page-path^="/services/rtos/"] #main-content [style*="background:#2e6da4"],
body[data-page-path="/en/services/rtos/"] #main-content .solution-section :is(
  [style*="background:#0066b1"],
  [style*="background:#1a6faf"],
  [style*="background:#1a4f7a"],
  [style*="background:#0d3b6e"],
  [style*="background:#2e6da4"]
) {
  background: #e80000 !important;
}

/* Solid RTOS buttons darken without changing to an outlined button. */
body[data-page-path^="/services/rtos/"] #main-content a:is(
  [style*="background:#0066b1"],
  [style*="background:#1a6faf"],
  [style*="background:#1a4f7a"],
  [style*="background:#0d3b6e"],
  [style*="background:#2e6da4"]
):is(:hover, :focus-visible),
body[data-page-path="/en/services/rtos/"] #main-content .solution-section a:is(
  [style*="background:#0066b1"],
  [style*="background:#1a6faf"],
  [style*="background:#1a4f7a"],
  [style*="background:#0d3b6e"],
  [style*="background:#2e6da4"]
):is(:hover, :focus-visible),
body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"])
  #main-content .external-form-page-link:is(:hover, :focus-visible) {
  background: #c00000 !important;
  color: #fff !important;
}

body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"])
  .external-form-page-link {
  transition: background-color var(--chub-transition);
}

body[data-page-path^="/services/rtos/"] #main-content [style*="color:#0066b1"],
body[data-page-path^="/services/rtos/"] #main-content [style*="color:#1a6faf"],
body[data-page-path^="/services/rtos/"] #main-content [style*="color:#1a4f7a"],
body[data-page-path^="/services/rtos/"] #main-content [style*="color:#0d3b6e"],
body[data-page-path^="/services/rtos/"] #main-content [style*="color:#2e6da4"] {
  color: #e80000 !important;
}

body[data-page-path^="/services/rtos/"] #main-content [style*="background:#eaf2fb"],
body[data-page-path^="/services/rtos/"] #main-content [style*="background:#e8f1fb"] {
  background: #ffe8e8 !important;
}

body[data-page-path^="/services/rtos/"] #main-content [style*="#b3d0ef"],
body[data-page-path^="/services/rtos/"] #main-content [style*="#c8ddf0"],
body[data-page-path^="/services/rtos/"] #main-content [style*="#e8f1fb"],
body[data-page-path="/en/services/rtos/"] #main-content .solution-section :is(
  [style*="#b3d0ef"],
  [style*="#c8ddf0"],
  [style*="#e8f1fb"]
) {
  border-color: #f3b4b4 !important;
}

body[data-page-path^="/services/rtos/"] #main-content [style*="#1a6faf"] {
  border-color: #e80000 !important;
}

body[data-page-path^="/services/rtos/"] .section-title {
  color: #1a3a5c;
}

body[data-page-path^="/en/services/rtos/"] .section-title {
  color: #1a3a5c;
}

body[data-page-path^="/services/rtos/"] .breadcrumb-inner a {
  color: #20aee5;
}

body[data-page-path^="/services/rtos/"] .breadcrumb-inner a:hover {
  color: #999;
}

body[data-page-path^="/en/services/rtos/"] .breadcrumb-inner a {
  color: #20aee5;
}

body[data-page-path^="/en/services/rtos/"] .breadcrumb-inner a:hover {
  color: #999;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--uct-surface);
  color: var(--uct-text);
  font-size: 18px;
  line-height: 1.8;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--uct-theme-primary, #7ec8f5);
  outline-offset: 3px;
}

/* Header */
#header_container {
  background: var(--uct-deep);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 28px rgba(4,25,48,0.16);
}

#header_content {
  height: 72px;
  max-width: var(--uct-container);
  padding-inline: var(--uct-gutter);
}

.hd_title img {
  filter: brightness(0) invert(1);
  width: clamp(210px, 20vw, 250px);
}

#global_menu_ul {
  gap: clamp(4px, 1vw, 18px);
}

#global_menu_ul > li > a {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 72px;
  padding-inline: clamp(8px, 1vw, 15px);
  transition: background-color var(--uct-transition), opacity var(--uct-transition);
}

#global_menu_ul > li > a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sub-menu {
  background: rgba(6,38,72,0.94);
  border: 0;
  border-top: 2px solid var(--uct-primary);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
  min-width: 240px;
  top: 72px;
  backdrop-filter: blur(18px);
}

.sub-menu li a {
  border-bottom-color: rgba(255,255,255,0.12);
  color: #fff;
  line-height: 1.6;
  padding: 13px 18px;
}

.sub-menu li a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Hero */
.home-hero,
.page-hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.home-hero::before,
.page-hero::before {
  background: linear-gradient(90deg, rgba(6,31,59,0.88) 0%, rgba(13,59,110,0.68) 48%, rgba(13,59,110,0.18) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-inner {
  margin-inline: auto;
  max-width: var(--uct-container);
  min-width: 0;
  position: relative;
  width: 100%;
}

.home-hero {
  align-items: center;
  display: flex;
  min-height: calc(88svh - 72px);
  padding: clamp(88px, 12vh, 150px) var(--uct-gutter);
  text-align: left;
}

body[data-page-path="/"] .home-hero,
body[data-page-path="/en/"] .home-hero,
body[data-page-path="/en/"] .page-hero {
  background-position: center center;
}

.home-hero-eyecatch {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.home-hero h1 {
  font-size: clamp(46px, 5vw, 86px);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  margin-bottom: 28px;
  max-width: 900px;
  text-wrap: balance;
}

.home-hero .hero-sub {
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.85;
  margin: 0 0 38px;
  max-width: 700px;
}

.home-hero-cta {
  align-items: center;
  background: var(--uct-primary);
  border: 1px solid var(--uct-primary);
  border-radius: 2px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  min-height: 54px;
  padding: 14px 30px;
  transition: background-color var(--uct-transition), border-color var(--uct-transition), transform var(--uct-transition);
}

.home-hero-cta:hover {
  background: #fff;
  border-color: #fff;
  color: var(--uct-deep);
  transform: translateY(-2px);
}

.page-hero {
  align-items: center;
  display: flex;
  min-height: clamp(280px, 34vw, 430px);
  padding: clamp(72px, 9vw, 118px) var(--uct-gutter);
}

.page-hero .hero-inner {
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(38px, 4vw, 65px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 18px;
  max-width: 900px;
}

.page-hero .hero-sub {
  font-size: clamp(18px, 1.4vw, 22px);
  margin: 0;
  max-width: 720px;
}

.page-hero .hero-label {
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

/* Content rhythm and headings */
.section {
  max-width: var(--uct-container);
  padding: var(--uct-section-space) var(--uct-gutter);
}

.section-title {
  border: 0;
  color: var(--uct-heading);
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(38px, 5vw, 68px);
  padding: 0;
}

.section-title span {
  margin-left: 0;
}

.section-title-en {
  color: var(--uct-heading) !important;
  font-size: clamp(46px, 5vw, 79px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.015em;
  line-height: 1.05;
  order: 1;
}

.section-title-ja {
  color: var(--uct-primary) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  margin-top: 16px !important;
  order: 2;
}

.section-title-main {
  color: var(--uct-heading) !important;
  font-size: clamp(34px, 3vw, 50px) !important;
  font-weight: 500 !important;
  line-height: 1.3;
}

/* Mission statement */
body[data-page-path="/"] .rich-text-highlight-section,
body[data-page-path="/en/"] .rich-text-highlight-section {
  max-width: none;
  padding: 0;
}

body[data-page-path="/"] .rich-text-highlight-section + .section,
body[data-page-path="/en/"] .rich-text-highlight-section + .section {
  padding-top: var(--chub-section-space);
}

body[data-page-path="/"] .philosophy-box,
body[data-page-path="/en/"] .philosophy-box {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: clamp(88px, 12vw, 170px) var(--uct-gutter);
}

body[data-page-path="/"] .philosophy-box .label,
body[data-page-path="/en/"] .philosophy-box .label {
  color: var(--uct-primary);
  font-size: 17px;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}

body[data-page-path="/"] .philosophy-box .text,
body[data-page-path="/en/"] .philosophy-box .text {
  color: var(--uct-heading);
  font-size: clamp(31px, 3.6vw, 62px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.65;
  margin-inline: auto;
  max-width: 1040px;
  text-wrap: balance;
}

/* Editorial service grid */
.home-services-section {
  max-width: var(--uct-container);
}

.home-service-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 28px;
}

.home-service-card {
  border: 1px solid var(--uct-theme-pale-border, #e2e9f1);
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  transition: border-color var(--uct-transition), transform var(--uct-transition);
}

.home-service-card:first-child {
  grid-row: 1 / span 2;
}

.home-service-card:nth-child(n+2) {
  display: grid;
  grid-template-columns: 44% 56%;
  grid-template-rows: 1fr auto;
}

.home-service-card:nth-child(n+2) .home-service-visual {
  aspect-ratio: auto;
  grid-row: 1 / span 2;
  min-height: 100%;
}

.home-service-card:hover {
  border-color: var(--uct-primary);
  box-shadow: none;
  transform: translateY(-3px);
}

.home-service-visual {
  border: 0;
}

.home-service-visual.has-image {
  border: 0;
}

.home-service-visual.has-image img {
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
}

.home-service-card:hover .home-service-visual.has-image img {
  transform: scale(1.03);
}

.home-service-card-body {
  padding: clamp(20px, 3vw, 38px);
}

.home-service-tag {
  background: transparent !important;
  border-radius: 0;
  color: var(--uct-primary) !important;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 0;
}

.home-service-card h3 {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 14px;
}

.home-service-card:nth-child(n+2) h3 {
  font-size: clamp(20px, 1.5vw, 26px);
}

.home-service-card-body p {
  font-size: 18px;
  line-height: 1.8;
}

.home-service-card-footer {
  background: transparent !important;
  color: var(--uct-primary);
  padding: 0 clamp(20px, 3vw, 38px) 26px;
  text-align: left;
  transition: letter-spacing var(--uct-transition);
}

.home-service-card:hover .home-service-card-footer {
  letter-spacing: 0.04em;
}

.home-service-nav {
  margin-top: 52px;
  text-align: right;
}

.home-service-nav a {
  border: 0;
  border-bottom: 1px solid var(--uct-primary);
  border-radius: 0;
  padding: 8px 0;
  transition: color var(--uct-transition), border-color var(--uct-transition);
}

.home-service-nav a:hover {
  background: transparent;
  border-color: var(--uct-deep);
  color: var(--uct-deep);
}

/* Lighter content components */
.cms-richtext,
.cms-card,
.services-overview-card,
.news-card,
.cms-definition-table {
  box-shadow: none;
}

.cms-card,
.services-overview-card,
.news-card {
  border-radius: 0;
}

.cms-card {
  border-color: var(--uct-theme-pale-border, #dfe8f3);
  padding: 30px;
}

.cms-richtext {
  border-radius: 0;
  padding: clamp(26px, 4vw, 48px);
}

/* Full-width contact moment on the home page */
body[data-page-path="/"] .section:has(> .cms-cta),
body[data-page-path="/en/"] .section:has(> .cms-cta) {
  max-width: none;
  padding: 0;
}

.cms-cta,
.cta-block {
  background: var(--uct-deep);
  border-radius: 0;
  padding: clamp(64px, 9vw, 120px) var(--uct-gutter);
  text-align: left;
}

.cms-cta-inner {
  display: grid;
  gap: 22px clamp(32px, 7vw, 110px);
  grid-template-columns: minmax(0, 1fr) auto;
  margin-inline: auto;
  max-width: var(--uct-container);
}

.cms-cta h2 {
  font-size: clamp(34px, 3.2vw, 55px);
  font-weight: 500;
  grid-column: 1;
  line-height: 1.4;
  margin: 0;
}

.cms-cta-body {
  grid-column: 1;
}

.cms-cta-body p {
  margin: 0;
}

.cms-cta-inner > p {
  align-self: center;
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.cms-cta-link,
.cta-block a {
  align-items: center;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 2px;
  display: inline-flex;
  min-height: 54px;
  padding: 13px 28px;
  transition: background-color var(--uct-transition), color var(--uct-transition);
}

/* Editorial news split */
.topics-section-editorial {
  align-items: start;
  background: #fff;
  border: 0;
  display: grid;
  gap: 0 clamp(48px, 8vw, 120px);
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.topics-section-editorial .section-title {
  grid-column: 1;
  grid-row: 1;
}

.topics-section-editorial .topics-list {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.topics-section-editorial > p {
  grid-column: 1;
  grid-row: 2;
}

.topics-list {
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.topics-list li {
  gap: 14px 20px;
  padding: 22px 10px;
  transition: background-color var(--uct-transition), padding var(--uct-transition);
}

.topics-list li:hover {
  background: var(--uct-pale);
  padding-inline: 16px;
}

.topics-title {
  font-size: 18px;
  line-height: 1.75;
}

.topics-title a:hover {
  text-decoration: none;
}

.more-link {
  border-bottom: 1px solid currentColor;
  font-size: 18px;
  margin-top: 0;
  padding-bottom: 6px;
  text-decoration: none;
}

/* Footer */
footer {
  background: #08294d;
  color: rgba(255,255,255,0.72);
  padding: clamp(64px, 8vw, 104px) var(--uct-gutter) 28px;
}

.footer-inner {
  max-width: var(--uct-container);
}

.footer-main {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
}

.footer-brand > a {
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.footer-brand p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 14px;
}

.footer-nav {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.footer-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.footer-nav a {
  color: #fff;
  display: block;
  font-size: 18px;
  padding: 14px 10px;
  transition: background-color var(--uct-transition), padding var(--uct-transition);
}

.footer-nav a:hover {
  background: rgba(255,255,255,0.07);
  padding-left: 16px;
  text-decoration: none;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.5);
  margin-top: 64px;
  padding-top: 22px;
  text-align: left;
}

@media (max-width: 1100px) {
  .home-service-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .home-service-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .home-service-card:nth-child(n+2) {
    display: flex;
  }

  .home-service-card:nth-child(n+2) .home-service-visual {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (max-width: 820px) {
  #header_content {
    height: 64px;
  }

  .hd_title img {
    width: min(205px, 66vw);
  }

  #hamburger span {
    background: #fff;
  }

  #global_menu {
    background: rgba(6,38,72,0.98);
    border-top: 1px solid rgba(255,255,255,0.18);
    top: 64px;
  }

  #global_menu_ul > li > a {
    border-bottom-color: rgba(255,255,255,0.14);
    color: #fff;
  }

  .sub-menu {
    background: rgba(255,255,255,0.07);
    border-bottom-color: rgba(255,255,255,0.14);
  }

  .sub-menu li a {
    border-bottom-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.88);
  }

  .cms-cta-inner {
    grid-template-columns: 1fr;
  }

  .cms-cta-inner > p {
    grid-column: 1;
    grid-row: auto;
  }

  .topics-section-editorial {
    display: block;
  }

  .topics-section-editorial > p {
    margin-top: 34px;
    text-align: right;
  }
}

@media (max-width: 700px) {
  :root {
    --uct-gutter: 20px;
    --uct-section-space: 48px;
  }

  body {
    font-size: 18px;
  }

  .home-hero {
    min-height: calc(76svh - 64px);
    padding-block: 72px;
  }

  .home-hero::before,
  .page-hero::before {
    background: linear-gradient(90deg, rgba(6,31,59,0.9) 0%, rgba(13,59,110,0.7) 72%, rgba(13,59,110,0.38) 100%);
  }

  .home-hero h1 {
    font-size: 38px;
    line-height: 1.32;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .home-hero .hero-sub {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .page-hero {
    min-height: 300px;
  }

  .section-title-en {
    font-size: clamp(41px, 12vw, 55px) !important;
  }

  body[data-page-path="/"] .philosophy-box,
  body[data-page-path="/en/"] .philosophy-box {
    padding-block: 82px;
    text-align: left;
  }

  body[data-page-path="/"] .philosophy-box .text,
  body[data-page-path="/en/"] .philosophy-box .text {
    font-size: clamp(29px, 7vw, 38px);
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card:first-child {
    grid-column: auto;
  }

  .home-service-card h3,
  .home-service-card:nth-child(n+2) h3 {
    font-size: 25px;
  }

  .home-service-nav {
    text-align: left;
  }

  .cms-richtext {
    padding: 24px 0;
  }

  .cms-cta,
  .cta-block {
    padding-block: 72px;
  }

  .cms-cta h2 {
    font-size: 34px;
  }

  .cms-cta-link {
    justify-content: center;
    width: 100%;
  }

  .topics-list li,
  .topics-list li:hover {
    padding: 18px 4px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    margin-top: 48px;
  }
}

/* Kokosil content theme: green throughout Japanese and English service pages. */
body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) {
  --uct-primary: #090;
  --uct-deep: #060;
  --uct-heading: #060;
  --uct-pale: #e8f5e8;
  --uct-border: #8c8;
  --uct-theme-primary: #090;
  --uct-theme-heading: #060;
  --uct-theme-pale: #e8f5e8;
  --uct-theme-pale-border: #8c8;
  --chub-primary: #090;
  --chub-primary-hover: #070;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #main-content :is(
  .cms-card,
  .cms-flow-block,
  .cms-notice,
  .challenge-col-title,
  .challenge-list,
  .challenge-resolve,
  .kokosil-feature-card,
  .region-tag,
  .kokosil-case-card,
  .case-stat,
  .external-form-card,
  .form-notice
) {
  background: #fff !important;
  border: 1px solid #090 !important;
  color: #333 !important;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #main-content :is(
  .cms-card,
  .cms-flow-block,
  .cms-notice,
  .challenge-col-title,
  .challenge-list,
  .challenge-resolve,
  .kokosil-feature-card,
  .region-tag,
  .kokosil-case-card,
  .case-stat,
  .external-form-card,
  .form-notice
) :is(h2, h3, h4, p, li, strong, span, a:not(.external-form-page-link)) {
  color: #333 !important;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #main-content :is(
  .cms-card,
  .cms-flow-block,
  .cms-notice,
  .challenge-col-title,
  .challenge-list,
  .challenge-resolve,
  .kokosil-feature-card,
  .region-tag,
  .kokosil-case-card,
  .case-stat,
  .external-form-card,
  .form-notice
) :is(h2, h3, h4, strong, a:not(.external-form-page-link)),
body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #main-content :is(.challenge-col-title, .region-tag) {
  color: #090 !important;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #main-content :is(
  [style*="background:#0066b1"],
  [style*="background:#1a6faf"],
  [style*="background:#1a4f7a"],
  [style*="background:#0d3b6e"],
  [style*="background:#2e6da4"]
) {
  background: #fff !important;
  border: 1px solid #090 !important;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #main-content :is(
  [style*="color:#0066b1"],
  [style*="color:#1a6faf"],
  [style*="color:#1a4f7a"],
  [style*="color:#0d3b6e"],
  [style*="color:#2e6da4"]
) {
  color: #090 !important;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #main-content :is(
  .lang-tags span,
  .case-badge,
  .external-form-link:not(.external-form-page-link),
  .external-form-pending
) {
  background: #fff !important;
  border: 1px solid #090 !important;
  color: #090 !important;
}

/* Keep shared navigation, breadcrumbs, section titles, and footer on the site palette. */
body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) #header_container {
  border-bottom-color: #20aee5;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) :is(.breadcrumb-inner a, .breadcrumb-inner a:hover) {
  color: #20aee5;
}

html body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) .section-title {
  color: #222 !important;
}

html body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) .section-title::after {
  background: #090 !important;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) .sub-menu {
  border-top-color: #20aee5;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) .sub-menu li a:is(:hover, :focus-visible) {
  background: #eefaff;
  color: #20aee5;
}

body:is(
  [data-page-path^="/services/kokosil/"],
  [data-page-path^="/en/services/kokosil/"]
) .footer-nav a:hover {
  color: #20aee5;
}

@media (min-width: 821px) {
  body:is(
    [data-page-path^="/services/kokosil/"],
    [data-page-path^="/en/services/kokosil/"]
  ) #global_menu_ul > li > a:is(:hover, :focus-visible) {
    background: #20aee5;
    color: #fff;
  }
}

@media (max-width: 820px) {
  body:is(
    [data-page-path^="/services/kokosil/"],
    [data-page-path^="/en/services/kokosil/"]
  ) #global_menu {
    border-top-color: #20aee5;
  }

  body:is(
    [data-page-path^="/services/kokosil/"],
    [data-page-path^="/en/services/kokosil/"]
  ) #global_menu_ul > li > a:is(:hover, :focus-visible) {
    background: #eefaff;
    color: #20aee5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep site chrome typography unchanged when enlarging page body copy. */
#global_menu_ul > li > a,
.sub-menu li a {
  font-size: 13px;
}
.breadcrumb-inner {
  font-size: 12px;
}
.page-hero .hero-label {
  font-size: 16px !important;
}
.home-hero-eyecatch {
  font-size: 16px;
}
.footer-nav a,
.footer-copy,
.footer-brand p {
  font-size: 14px;
}

@media (max-width: 820px) {
  #global_menu_ul > li > a,
  .sub-menu li a {
    font-size: 14px;
  }
  .menu-item-has-children > a::after {
    font-size: 12px;
  }
}

/*
 * Japanese and English Smart Building content theme.
 * Keep shared navigation, breadcrumbs, and the footer on the site-wide theme.
 */
body:is(
  [data-page-path^="/services/smart-building/"],
  [data-page-path^="/en/services/smart-building/"]
) #main-content > :not(.breadcrumb) {
  --uct-primary: #133ba9;
  --uct-deep: #133ba9;
  --uct-heading: #133ba9;
  --uct-pale: #eef1fb;
  --uct-border: #c4cdeb;
  --uct-theme-primary: #133ba9;
  --uct-theme-heading: #133ba9;
  --uct-theme-pale: #eef1fb;
  --uct-theme-pale-border: #c4cdeb;
  --chub-primary: #133ba9;
}

body:is(
  [data-page-path^="/services/smart-building/"],
  [data-page-path^="/en/services/smart-building/"]
)
  #main-content
  > :not(.breadcrumb)
  [style*="color:#0066b1"] {
  color: #133ba9 !important;
}

body:is(
  [data-page-path^="/services/smart-building/"],
  [data-page-path^="/en/services/smart-building/"]
) :is(
  .cms-card,
  .value-card,
  .installation-card,
  .case-list li
) {
  background: var(--uct-theme-pale);
  border-color: var(--uct-theme-pale-border);
}

@media (max-width: 767px) {
  body .page-hero .hero-label {
    font-size: 14px !important;
  }
  body .page-hero h1 {
    font-size: 34px !important;
  }
  body .page-hero .hero-sub {
    font-size: 18px !important;
  }
}

/* Keep page-hero typography consistent with the smart-building service page. */
.page-hero .hero-label {
  font-size: 17px !important;
}

.page-hero h1 {
  font-size: 38px !important;
}

.page-hero .hero-sub {
  font-size: 19px !important;
}

/* Match the middleware product-lineup heading spacing to other sections. */
body[data-page-path="/services/rtos/middleware.html"] .mw-section > .section {
  padding-top: var(--chub-section-space) !important;
}

/* Service overview statements directly below the hero image. */
body:is(
  [data-page-path="/services/smart-building/"],
  [data-page-path="/en/services/smart-building/"],
  [data-page-path="/services/kokosil/"],
  [data-page-path="/en/services/kokosil/"]
) #main-content .page-hero + .scroll-target + .section {
  text-align: center;
}

body:is(
  [data-page-path="/services/smart-building/"],
  [data-page-path="/en/services/smart-building/"],
  [data-page-path="/services/kokosil/"],
  [data-page-path="/en/services/kokosil/"]
) #main-content .page-hero + .scroll-target + .section .cms-richtext {
  font-size: clamp(22px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.8;
  margin-inline: auto;
  max-width: 1100px;
}

/* CMS-managed service statement shown directly below a service hero. */
.rich-text-service-intro-section {
  text-align: center;
}

.rich-text-service-intro-section .cms-richtext {
  font-size: clamp(22px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.8;
  margin-inline: auto;
  max-width: 1100px;
}

/* Keep the home-page news section on a white background. */
body[data-page-path="/"] #main-content .topics-section,
body[data-page-path="/"] #main-content .topics-section::before {
  background: #fff !important;
}

/* Alternate top-level content section backgrounds, beginning with white. */
#main-content .section.site-section-bg-white,
#main-content .section.site-section-bg-muted {
  background: transparent !important;
  isolation: isolate;
  position: relative;
}

#main-content .section.site-section-bg-white::before,
#main-content .section.site-section-bg-muted::before {
  content: "";
  inset-block: 0;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

#main-content .section.site-section-bg-white::before {
  background: #fff;
}

#main-content .section.site-section-bg-muted::before {
  background: #f5f5f5;
}

/* Keep the global navigation on the site-wide blue palette on RTOS pages. */
body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) .sub-menu {
  border-top-color: #20aee5;
}

body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) .sub-menu li a:hover,
body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) .sub-menu li a:focus-visible {
  background: #eefaff;
  color: #20aee5;
}

@media (min-width: 821px) {
  body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) #global_menu_ul > li > a:hover,
  body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) #global_menu_ul > li > a:focus-visible {
    background: #20aee5;
    color: #fff;
  }
}

@media (max-width: 820px) {
  body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) #global_menu {
    border-top-color: #20aee5;
  }

  body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) #global_menu_ul > li > a:hover,
  body:is([data-page-path^="/services/rtos/"], [data-page-path^="/en/services/rtos/"]) #global_menu_ul > li > a:focus-visible {
    background: #eefaff;
    color: #20aee5;
  }
}

/* ========================================
   2026 INIAD cHUB-inspired refresh
   Source of truth: design.md
   ======================================== */
:root {
  --chub-primary: var(--uct-primary);
  --chub-primary-hover: #999;
  --chub-text: #222;
  --chub-body: #333;
  --chub-muted: #777;
  --chub-border: #ccc;
  --chub-surface: #fff;
  --chub-footer: #000;
  --chub-container: 1170px;
  --chub-gutter: 30px;
  --chub-section-space: 66.6667px;
  --chub-transition: 350ms ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background: var(--chub-surface);
  color: var(--chub-body);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
}

body.menu-open {
  overflow: hidden;
}

a {
  transition: color var(--chub-transition), background-color var(--chub-transition), border-color var(--chub-transition);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--chub-primary);
  outline-offset: 3px;
}

.skip-link {
  background: #fff;
  color: var(--chub-text);
  font-weight: 500;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  transition: top 180ms ease-out;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

#main-content {
  min-height: 60vh;
  padding-top: 72px;
}

body[data-page-path="/"] #main-content,
body[data-page-path="/en/"] #main-content {
  padding-top: 72px;
}

.scroll-target {
  display: block;
  height: 0;
  scroll-margin-top: 72px;
}

/* Fixed navigation: photo overlay at the top, white bar after scrolling. */
#header_container {
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(34,34,34,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: background-color var(--chub-transition), box-shadow var(--chub-transition), transform var(--chub-transition);
  width: 100%;
  z-index: 500;
}

#header_content {
  height: 72px;
  max-width: var(--chub-container);
  padding: 0 var(--chub-gutter);
}

.hd_title img {
  filter: none;
  transition: filter var(--chub-transition), opacity var(--chub-transition);
  width: 250px;
}

#global_menu_ul {
  gap: 2px;
}

#global_menu_ul > li > a {
  color: var(--chub-text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 72px;
  padding: 0 14px;
}

#global_menu_ul > li > a:hover,
#global_menu_ul > li > a:focus-visible {
  background: var(--chub-primary);
  border-radius: 0;
  color: #fff;
}

.sub-menu {
  background: #fff;
  border: 0;
  border-top: 3px solid var(--chub-primary);
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  min-width: 230px;
  top: 72px;
}

.sub-menu li a {
  border-bottom: 1px solid #eee;
  color: var(--chub-text);
  font-size: 17px;
  padding: 12px 18px;
}

.sub-menu li a:hover,
.sub-menu li a:focus-visible {
  background: var(--uct-theme-pale, #eefaff);
  color: var(--chub-primary);
}

@media (min-width: 821px) {
  body[data-page-path="/"] #header_container:not(.is-scrolled),
  body[data-page-path="/en/"] #header_container:not(.is-scrolled) {
    background: rgba(0,0,0,0.12);
    border-bottom-color: rgba(255,255,255,0.25);
    box-shadow: none;
  }

  body[data-page-path="/"] #header_container:not(.is-scrolled) .hd_title img,
  body[data-page-path="/en/"] #header_container:not(.is-scrolled) .hd_title img {
    filter: brightness(0) invert(1);
  }

  body[data-page-path="/"] #header_container:not(.is-scrolled) #global_menu_ul > li > a,
  body[data-page-path="/en/"] #header_container:not(.is-scrolled) #global_menu_ul > li > a {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  }
}

/* Hero */
.home-hero,
.page-hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.home-hero::before,
.page-hero::before {
  background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-inner {
  margin: 0 auto;
  max-width: var(--chub-container);
  position: relative;
  width: 100%;
}

.home-hero {
  align-items: center;
  display: flex;
  min-height: 100svh;
  padding: 120px var(--chub-gutter) 100px;
  text-align: center;
}

.home-hero .hero-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.home-hero-eyecatch {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.home-hero h1 {
  font-size: clamp(46px, 4.8vw, 77px);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.35;
  margin-bottom: 24px;
  max-width: 920px;
  text-wrap: balance;
}

.home-hero .hero-sub {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 300;
  line-height: 1.9;
  margin: 0 auto 34px;
  max-width: 720px;
}

.home-hero-cta {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  min-height: 50px;
  padding: 12px 30px;
}

.home-hero-cta:hover {
  background: var(--chub-primary);
  border-color: var(--chub-primary);
  color: #fff;
  transform: none;
}

.page-hero {
  align-items: center;
  display: flex;
  min-height: 320px;
  padding: 72px var(--chub-gutter);
}

.page-hero .hero-inner {
  text-align: center;
}

.page-hero .hero-label {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(36px, 3.5vw, 55px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin: 0 auto 14px;
}

.page-hero .hero-sub {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 auto;
}

/* Content rhythm */
.section {
  max-width: var(--chub-container);
  padding: var(--chub-section-space) var(--chub-gutter);
}

.section-title,
.section-title.section-title-bilingual {
  align-items: center;
  border: 0;
  display: flex;
  flex-direction: column;
  margin: 0 0 50px;
  padding: 0;
  text-align: center;
}

.section-title::after {
  background: var(--chub-primary);
  content: "";
  height: 3px;
  margin-top: 22px;
  width: 64px;
}

.section-title-en {
  color: var(--chub-text) !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  letter-spacing: 0.18em;
  line-height: 1.4;
  order: 1;
}

.section-title-ja {
  color: var(--chub-muted) !important;
  font-size: 17px !important;
  font-weight: 300 !important;
  letter-spacing: 0.12em;
  margin-top: 8px !important;
  order: 2;
}

.section-title-main {
  color: var(--chub-text) !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.cms-richtext,
.cms-card,
.services-overview-card,
.news-card,
.cms-definition-table {
  border-radius: 0;
  box-shadow: none;
}

.cms-richtext {
  font-size: 18px;
  line-height: 1.8;
  padding: 0;
}

.cms-richtext p {
  line-height: 1.8;
}

.cms-richtext a,
.cms-inline-link,
.more-link,
.breadcrumb-inner a {
  color: var(--chub-primary);
}

.cms-richtext a:hover,
.cms-inline-link:hover,
.more-link:hover,
.breadcrumb-inner a:hover {
  color: var(--chub-primary-hover);
}

/* The mission becomes the single strong blue color field. */
body[data-page-path="/"] .rich-text-highlight-section,
body[data-page-path="/en/"] .rich-text-highlight-section {
  background: #20aee5;
  max-width: none;
  padding: 0;
}

body[data-page-path="/"] .philosophy-box,
body[data-page-path="/en/"] .philosophy-box {
  background: transparent;
  border: 0;
  color: #fff;
  margin: 0 auto;
  max-width: var(--chub-container);
  padding: 32px var(--chub-gutter);
}

body[data-page-path="/"] .philosophy-box .label,
body[data-page-path="/"] .philosophy-box .text,
body[data-page-path="/en/"] .philosophy-box .label,
body[data-page-path="/en/"] .philosophy-box .text {
  color: #fff;
  font-weight: 300;
}

body[data-page-path="/"] .philosophy-box .label,
body[data-page-path="/en/"] .philosophy-box .label {
  font-size: 18px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

body[data-page-path="/"] .philosophy-box .text,
body[data-page-path="/en/"] .philosophy-box .text {
  font-size: clamp(26px, 2.6vw, 41px);
  line-height: 1.7;
}

/* Photo-led cards */
.home-service-grid {
  gap: 30px;
}

.home-service-card {
  border: 1px solid #ddd;
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--chub-transition);
}

.home-service-card:hover {
  border-color: var(--chub-primary);
  box-shadow: none;
  transform: none;
}

.home-service-card-body {
  padding: 28px 30px 20px;
}

.home-service-tag {
  color: var(--chub-primary) !important;
  font-size: 16px;
  font-weight: 400;
}

.home-service-card h3 {
  color: var(--chub-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.55;
}

.home-service-card-body p {
  color: var(--chub-body);
  line-height: 1.8;
}

.home-service-card-footer {
  color: var(--chub-primary);
  font-weight: 400;
}

.home-service-nav a {
  border-color: var(--chub-primary);
  color: var(--chub-primary);
}

/* Contact CTA and news list */
.cms-cta,
.cta-block {
  background: var(--chub-primary);
  border-radius: 0;
  color: #fff;
  padding: 72px var(--chub-gutter);
}

.cms-cta h2,
.cta-block h2 {
  font-size: 29px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.cms-cta-link,
.cta-block a {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  color: #fff;
  font-weight: 400;
}

.cms-cta-link:hover,
.cta-block a:hover {
  background: #fff;
  color: var(--chub-primary);
}

.topics-section-editorial {
  display: block;
}

.topics-section-editorial > p {
  margin-top: 28px;
  text-align: center;
}

.topics-list {
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  max-width: 940px;
  padding: 0;
}

.topics-list li,
.topics-list li:hover {
  border-color: #ddd;
  gap: 14px 20px;
  padding: 18px 8px;
}

.topics-list li:hover {
  background: var(--uct-theme-pale, #eefaff);
}

.topics-cat {
  background: var(--uct-theme-pale, #e8f8fe);
  color: var(--chub-primary);
}

.topics-title a:hover {
  color: var(--chub-primary-hover);
}

/* Footer */
footer {
  background: #eee;
  color: #000;
  padding: 48px var(--chub-gutter) 28px;
  text-align: center;
}

.footer-inner {
  max-width: var(--chub-container);
}

.footer-main {
  display: block;
}

.footer-brand > a {
  aspect-ratio: 579 / 88;
  background: url("/assets/img/uct-logo.png") center / contain no-repeat;
  color: #000;
  display: block;
  font-size: 0;
  font-weight: 500;
  line-height: 0;
  margin-inline: auto;
  width: clamp(145px, 34vw, 170px);
}

.footer-brand p {
  color: #000;
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  gap: 8px 24px;
  justify-content: center;
  margin-top: 28px;
}

.footer-nav li {
  border: 0;
}

.footer-nav a {
  color: #000;
  font-size: 16px;
  padding: 6px 0;
}

.footer-nav a:hover {
  background: transparent;
  color: var(--chub-primary);
  padding-left: 0;
  text-decoration: underline;
}

.footer-copy {
  border-top: 1px solid #ccc;
  color: #000;
  margin-top: 32px;
  padding-top: 22px;
  text-align: center;
}

@media (max-width: 820px) {
  :root {
    --chub-gutter: 20px;
  }

  #main-content {
    padding-top: 64px;
  }

  body[data-page-path="/"] #main-content,
  body[data-page-path="/en/"] #main-content {
    padding-top: 64px;
  }

  #header_container {
    background: #fff;
  }

  #header_content {
    height: 64px;
    padding: 0 20px;
  }

  .hd_title img {
    filter: none;
    width: min(205px, 66vw);
  }

  #hamburger span {
    background: var(--chub-text);
  }

  #global_menu {
    background: #fff;
    border-top: 2px solid var(--chub-primary);
    top: 64px;
  }

  #global_menu_ul > li > a {
    border-bottom: 1px solid #eee;
    color: var(--chub-text);
    font-size: 18px;
    line-height: 1.5;
    min-height: 52px;
    padding: 15px 24px;
  }

  #global_menu_ul > li > a:hover,
  #global_menu_ul > li > a:focus-visible {
    background: var(--uct-theme-pale, #eefaff);
    border-radius: 0;
    color: var(--chub-primary);
  }

  .sub-menu {
    background: #f7f7f7;
    border: 0;
  }

  .sub-menu li a {
    color: var(--chub-text);
  }

  .cms-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cms-cta-inner > p {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --chub-section-space: 46.6667px;
  }

  .home-hero {
    min-height: calc(100svh - 64px);
    padding: 72px 20px 88px;
  }

  .home-hero h1 {
    font-size: clamp(36px, 9vw, 48px);
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }

  .home-hero .hero-sub {
    font-size: 18px;
  }

  .page-hero {
    min-height: 280px;
    padding: 60px 20px;
  }

  .page-hero h1 {
    font-size: 34px;
    letter-spacing: 0.05em;
  }

  .section {
    padding: var(--chub-section-space) 20px;
  }

  .section-title-en,
  .section-title-main {
    font-size: 30px !important;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
  }

  .section-title-ja {
    letter-spacing: 0.08em;
  }

  body[data-page-path="/"] .philosophy-box,
  body[data-page-path="/en/"] .philosophy-box {
    padding: 22px 20px;
    text-align: left;
  }

  body[data-page-path="/"] .philosophy-box .text,
  body[data-page-path="/en/"] .philosophy-box .text {
    font-size: 25px;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card:nth-child(n+2) {
    display: flex;
  }

  .home-service-card:nth-child(n+2) .home-service-visual {
    aspect-ratio: 16 / 9;
  }

  .topics-list li {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .topics-title {
    grid-column: 1 / -1;
  }

  .footer-nav {
    align-items: center;
    flex-direction: column;
  }
}

/* CTA: shared full-width, centered vertical layout. */
.cms-cta,
.cta-block {
  box-sizing: border-box;
  padding: 48px var(--chub-gutter) !important;
  text-align: center !important;
}

.cta-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  left: 50%;
  margin-bottom: 0 !important;
  max-width: none !important;
  position: relative;
  transform: translateX(-50%);
  width: 100vw !important;
}

.cms-cta-inner {
  align-items: center;
  display: flex !important;
  flex-direction: column;
  gap: 22px;
  margin-inline: auto;
  max-width: var(--chub-container);
  text-align: center !important;
}

.cms-cta h2,
.cms-cta-body,
.cms-cta-inner > p {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0;
  text-align: center;
}

.cms-cta-body,
.cta-block > p {
  max-width: 760px;
}

.cta-block > p {
  margin: 0;
  text-align: center;
}

.cms-cta-link,
.cta-block a {
  justify-content: center;
  margin: 0;
}

@media (max-width: 767px) {
  .cms-cta-link,
  .cta-block a {
    max-width: 420px;
    width: 100%;
  }
}

/* Hero backgrounds: use the brand blue without image/gradient overlays. */
.home-hero,
.page-hero {
  background: var(--uct-primary);
}

.home-hero.hero-has-image,
.page-hero.hero-has-image {
  background-image: var(--hero-image) !important;
}

.home-hero::before,
.page-hero::before {
  display: none;
}

.page-hero {
  min-height: 260px !important;
  padding-block: 52px !important;
}

body[data-page-path^="/info/"] .page-hero .hero-sub,
body[data-page-path^="/info/"] .news-eyecatch-section,
body[data-page-path^="/en/info/"] .page-hero .hero-sub,
body[data-page-path^="/en/info/"] .news-eyecatch-section {
  display: none !important;
}

body[data-page-path="/en/"] .breadcrumb {
  display: none;
}

body[data-page-path="/en/"] .page-hero {
  align-items: center;
  display: flex;
  min-height: 100svh !important;
  padding: 120px var(--chub-gutter) 100px !important;
  text-align: center;
}

body[data-page-path="/en/"] .page-hero .hero-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  body[data-page-path="/en/"] .page-hero {
    min-height: calc(100svh - 64px) !important;
    padding: 72px 20px 88px !important;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 260px !important;
    padding-block: 42px !important;
  }
}

body[data-page-path="/"] .home-hero,
body[data-page-path="/en/"] .home-hero,
body[data-page-path="/en/"] .page-hero {
  background: url("/assets/img/home-hero-keyimg.png") center center / cover no-repeat;
}

/* Show the complete home key visual without full-screen cropping. */
body:is([data-page-path="/"], [data-page-path="/en/"]) .home-hero {
  aspect-ratio: 3264 / 1060;
  background-color: #fff;
  background-size: 100% auto;
  min-height: 0 !important;
  padding: 0 !important;
}

/* The supplied key visual already contains the visible headline and lead. */
body:is([data-page-path="/"], [data-page-path="/en/"]) .home-hero .hero-inner {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 767px) {
  body[data-page-path="/en/"] .philosophy-box .text {
    font-size: 22px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body[data-page-path="/en/"] .section-title,
  body[data-page-path="/en/"] .section-title-main,
  body[data-page-path="/en/"] .section-title-ja,
  body[data-page-path="/en/"] .section-title-en {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body[data-page-path="/en/"] .section-title-main,
  body[data-page-path="/en/"] .section-title-ja {
    font-size: 29px !important;
    line-height: 1.25;
  }
}

body[data-page-path="/services/rtos/"] .page-hero,
body[data-page-path="/en/services/rtos/"] .page-hero {
  aspect-ratio: 3264 / 1060;
  background: url("/assets/img/rtos/rtos-hero-keyimg.png") center center / cover no-repeat;
}

body[data-page-path="/en/services/rtos/"] .page-hero {
  background-image: url("/assets/img/rtos/rtos-hero-keyimg-en.png?v=20260724-1");
}

/* The supplied RTOS key visual already contains the visible page title. */
body:is([data-page-path="/services/rtos/"], [data-page-path="/en/services/rtos/"]) .page-hero .hero-inner {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body[data-page-path="/services/smart-building/"] .page-hero,
body[data-page-path="/en/services/smart-building/"] .page-hero {
  aspect-ratio: 3264 / 1060;
  background: url("/assets/img/smart-building/sbtop.png") center center / cover no-repeat;
}

body[data-page-path="/services/smart-building/"] .page-hero {
  background-image: url("/assets/img/smart-building/sbtop.png");
}

body[data-page-path="/en/services/smart-building/"] .page-hero {
  background-image: url("/assets/img/smart-building/sbtop-en.png?v=20260724-1");
}

body[data-page-path="/services/smart-building/"] .page-hero .hero-inner,
body[data-page-path="/en/services/smart-building/"] .page-hero .hero-inner {
  display: none;
}

body[data-page-path="/services/kokosil/"] .page-hero,
body[data-page-path="/en/services/kokosil/"] .page-hero {
  aspect-ratio: 3264 / 1312;
  background-color: #9fc9ee;
  background-image:
    url("/assets/img/kokosil/kokosil-hero-clean.png"),
    linear-gradient(
      180deg,
      #6491db 0%,
      #6491db 9.3%,
      #b6e2f8 90.7%,
      #c6edff 100%
    );
  background-position: center center, center;
  background-repeat: no-repeat;
  background-size: 100% auto, 100% 100%;
}

body:is(
  [data-page-path="/services/rtos/"],
  [data-page-path="/en/services/rtos/"],
  [data-page-path="/services/smart-building/"],
  [data-page-path="/en/services/smart-building/"],
  [data-page-path="/services/kokosil/"],
  [data-page-path="/en/services/kokosil/"]
) .page-hero {
  background-size: 100% auto;
  min-height: 0 !important;
  padding: 0 !important;
}

body[data-page-path="/services/smart-building/"] .page-hero,
body[data-page-path="/en/services/smart-building/"] .page-hero {
  background-size: 100% auto;
}

body[data-page-path="/services/kokosil/"] .page-hero,
body[data-page-path="/en/services/kokosil/"] .page-hero {
  background-size: 100% auto, 100% 100%;
}

.home-hero-eyecatch,
.home-hero h1,
.home-hero .hero-sub,
.page-hero .hero-label,
.page-hero h1,
.page-hero .hero-sub {
  text-shadow: none;
}

body:is(
  [data-page-path="/"],
  [data-page-path="/en/"],
  [data-page-path="/services/rtos/"],
  [data-page-path="/en/services/rtos/"],
  [data-page-path="/services/smart-building/"],
  [data-page-path="/en/services/smart-building/"],
  [data-page-path="/services/kokosil/"],
  [data-page-path="/en/services/kokosil/"]
) :is(.home-hero, .page-hero) :is(.home-hero-eyecatch, .hero-label, h1, .hero-sub) {
  text-shadow: 0 2px 2px rgba(0,0,0,0.55);
}

.home-hero-eyecatch,
.page-hero .hero-label {
  font-weight: 500;
}

.home-hero h1,
.home-hero .hero-sub,
.page-hero h1,
.page-hero .hero-sub {
  font-weight: 400;
}

/* Section headings: slightly larger with a stronger secondary label. */
.section-title {
  align-items: center !important;
  border: 0 !important;
  color: #222 !important;
  display: flex !important;
  flex-direction: column !important;
  font-size: clamp(34px, 3vw, 38px) !important;
  font-weight: 400 !important;
  gap: 0 !important;
  line-height: normal;
  margin: 0 0 50px !important;
  padding: 0 !important;
  text-align: center !important;
}

.section-title > span {
  font-size: 19px;
  font-weight: 600 !important;
  margin: 0 !important;
}

html .section-title::after {
  background: var(--chub-primary) !important;
  content: "";
  display: block;
  flex: 0 0 3px;
  height: 3px !important;
  margin: 22px 0 0 !important;
  order: 3;
  width: 64px !important;
}

html .section-title-en {
  color: var(--chub-muted) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  letter-spacing: normal;
  line-height: normal;
  margin: 0 !important;
  order: 2;
}

html .section-title-main,
html .section-title-ja {
  color: #222 !important;
  font-size: clamp(34px, 3vw, 38px) !important;
  font-weight: 400 !important;
  letter-spacing: normal;
  line-height: normal;
  margin: 0 !important;
  order: 1;
}

body:is(
  [data-page-path^="/services/smart-building/"],
  [data-page-path="/en/services/smart-building/"]
) .section-title {
  color: #222 !important;
}

body:is(
  [data-page-path^="/services/smart-building/"],
  [data-page-path="/en/services/smart-building/"]
) .section-title > span:not([class]) {
  color: var(--chub-muted) !important;
}

/* Home services: three full-width rows. */
body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-grid {
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, auto) !important;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card h3 {
  font-size: 36px;
  line-height: 1.4;
  margin-bottom: 14px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-body {
  padding: 24px 32px 12px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-body p {
  line-height: 1.65;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-tag.blue {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
  padding: 5px 0;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-footer.blue {
  align-items: center;
  align-self: start;
  background: var(--chub-primary) !important;
  border: 1px solid var(--chub-primary);
  border-radius: 2px;
  color: #fff;
  display: inline-flex;
  font-weight: 500;
  justify-content: center;
  margin: 0 32px 22px;
  min-height: 42px;
  padding: 9px 20px;
  width: fit-content;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:nth-child(1) .home-service-card-footer.blue {
  background: #e80000 !important;
  border-color: #e80000;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:nth-child(2) .home-service-card-footer.blue {
  background: #133ba9 !important;
  border-color: #133ba9;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:nth-child(3) .home-service-card-footer.blue {
  background: #090 !important;
  border-color: #090;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:hover .home-service-card-footer.blue,
body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:focus-visible .home-service-card-footer.blue {
  color: #fff;
  filter: brightness(0.82);
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card,
body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:nth-child(n+2) {
  display: grid !important;
  grid-column: auto !important;
  grid-row: auto !important;
  grid-template-columns: minmax(220px, 30.4%) minmax(0, 1fr) !important;
  grid-template-rows: 1fr auto;
  height: 260px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card .home-service-visual,
body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:nth-child(n+2) .home-service-visual {
  aspect-ratio: auto;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 0;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-footer {
  grid-column: 2;
}

@media (max-width: 767px) {
  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card h3 {
    font-size: 30px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-body {
    padding: 20px 22px 12px;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-body p {
    letter-spacing: 0.01em;
    line-height: 1.8;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-tag.blue {
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 6px 0;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-footer.blue {
    margin: 0 22px 20px;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card,
  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:nth-child(n+2) {
    display: flex !important;
    height: auto;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card .home-service-visual,
  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card:nth-child(n+2) .home-service-visual {
    aspect-ratio: 400 / 267;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card .home-service-visual.has-image img {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
  }
}

/* Center the product-detail buttons in the RTOS related-product cards. */
body[data-page-path="/services/rtos/"] .solution-section div:has(> a[href="os-tkas.html"]),
body[data-page-path="/services/rtos/"] .solution-section div:has(> a[href="os-utk3-freertos.html"]) {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final guard: page-body enlargement must not resize shared site chrome. */
#global_menu_ul > li > a,
.sub-menu li a {
  font-size: 13px;
}
.breadcrumb-inner {
  font-size: 12px;
}
.page-hero .hero-label {
  font-size: 16px !important;
}
.home-hero-eyecatch {
  font-size: 16px;
}
.footer-nav a,
.footer-copy,
.footer-brand p {
  font-size: 14px;
}

@media (max-width: 820px) {
  #global_menu_ul > li > a,
  .sub-menu li a {
    font-size: 14px;
  }
  .menu-item-has-children > a::after {
    font-size: 12px;
  }
}

/* Keep secondary navigation at its original size. */
.kit-nav-inner a {
  font-size: 15px;
}

/* Keep typography inside the three home service cards at its original size. */
body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-tag.blue {
  font-size: 15px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card h3 {
  font-size: 30px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-body p {
  font-size: 15px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card-footer {
  font-size: 14px;
}

/* Keep the home news article list at its original size. */
body:is([data-page-path="/"], [data-page-path="/en/"]) .topics-date {
  font-size: 13px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .topics-cat {
  font-size: 12px;
}

body:is([data-page-path="/"], [data-page-path="/en/"]) .topics-title {
  font-size: 15px;
}

@media (max-width: 767px) {
  .kit-nav-inner a {
    font-size: 14px;
  }

  body:is([data-page-path="/"], [data-page-path="/en/"]) .home-service-card h3 {
    font-size: 25px;
  }

  body[data-page-path="/en/"] .philosophy-box .text {
    font-size: 22px !important;
    line-height: 1.55;
    white-space: normal !important;
  }

  body[data-page-path="/en/"] .section-title-ja {
    font-size: 29px !important;
    line-height: 1.25 !important;
    max-width: 100%;
    white-space: pre-line !important;
  }

  body[data-page-path="/en/services/smart-building/"] .rich-text-service-intro-section .cms-richtext {
    font-size: 20px;
    max-width: calc(100vw - 40px);
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

body:is([data-page-path="/services/smart-building/"], [data-page-path="/en/services/smart-building/"]) .page-hero {
  aspect-ratio: 3264 / 1312;
}
