:root {
  --bg: #07080b;
  --surface: #10131a;
  --surface-soft: #171b25;
  --text: #f3f6ff;
  --muted: #b5bfd8;
  --accent: #8db6ff;
  --line: #252a38;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;          /* ensure viewport-covering even in WebView */
  background-color: var(--bg); /* dark fallback for browsers/webviews */
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  /* gradient layer over solid background; WebView will at least show
     the solid color if the image layer is missing or not painted */
  background: radial-gradient(circle at 20% 0%, #101629 0%, var(--bg) 42%) fixed,
              var(--bg);
  background-color: var(--bg); /* explicit backup, just in case */
  line-height: 1.75;
  min-height: 100vh;          /* make body span full viewport height */
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  /* add extra 140px to base height so content has a bit more breathing room */
  min-height: calc(72vh + 190px);
  background: url("img/hader.webp") center top / cover no-repeat;

  /* flex レイアウトで nav とコンテンツを縦並びにし、中央寄せ */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* 背景を下方向に余白、ギャップを半分に */
  padding-bottom: 25px;
}

/* 小さな画面では中央寄せを解除して上詰めに */
@media (max-width: 768px) {
  .hero {
    justify-content: flex-start;
    padding-top: 0; /* remove top gap so nav sits at viewport top */
    min-height: calc(50vh + 120px); /* 高さを小さく調整 */
  }
}

/* small header variant for inner pages */
.hero.small {
  min-height: 18vh; /* more compact */
}
.hero.small .hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(7, 8, 11, 0.92));
}
.hero.small .hero-content {
  padding: 24px 0 20px; /* reduce vertical padding */
}
.hero.small .page-title {
  position: relative;
  z-index: 1;
  color: var(--text);
  text-align: center;
  /* slightly smaller on inner pages */
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  font-weight: 700;
  margin: 0;
}
.hero.small .subtitle {
  position: relative;
  z-index: 1;
  color: var(--muted);
  text-align: center;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  margin-top: 4px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(7, 8, 11, 0.92));
  z-index: 0;
}

/* 通常ヘッダーではナビを背景上部に重ねるため絶対配置に変更 */
.hero {
  /* ヘッダー内にナビ分のスペースを確保 */
  padding-top: 80px;
}
.hero .site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 0;
}

/* small screen ではナビを相対に戻し、パディングも解除 */
@media (max-width: 768px) {
  .hero {
    padding-top: 0;
  }
  .hero .site-nav {
    position: relative;
  }
}

/* iOS ステータスバーの安全領域も考慮 */
@supports(padding: max(0px)) {
  .hero {
    padding-top: calc(80px + env(safe-area-inset-top));
  }
}

/* モバイルではナビを相対に戻し、パディングも解除 */
@media (max-width: 768px) {
  .site-nav {
    position: relative;
  }
  .hero {
    padding-top: 0;
  }
}

.site-nav,
.hero-content {
  position: relative;
  z-index: 1;
}

.site-nav {
  z-index: 30;
  /* ナビ上部のスペースを縮める */
  padding-top: 8px;
  /* margin-top は hero が通常サイズの時のみ適用するため、下で指定 */
}

.hero-content {
  z-index: 5;
}

.site-nav {
  padding-top: 4px; /* shrink top padding */
  /* default horizontal padding (mobile) */
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px; /* reduce space between logo, button, links */
  position: relative;
  z-index: 1000;
}

/* desktop: add 50px margin around logo and nav items */
@media (min-width: 1024px) {
  .site-nav {
    padding-left: 50px;
    padding-right: 50px;
  }
}

.brand img {
  width: 230px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* prevent nav links from breaking  */
.site-nav ul li a {
  white-space: nowrap;
}

/* submenu dropdown for case study */
.site-nav .has-submenu {
  position: relative;
}
.site-nav .submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 100;
}
/* sub-menu transparent bridge to prevent disappearing */
.site-nav .has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: max(100%, 180px);
  height: 20px;
  display: none;
}
.site-nav .has-submenu:hover::after {
  display: block;
}
.site-nav .submenu li {
  margin: 0;
}
.site-nav .submenu a {
  display: block;
  padding: 8px 16px;
}
.site-nav .has-submenu:hover .submenu,
.site-nav .has-submenu:focus-within .submenu,
.site-nav .submenu:hover {
  /* keep visible while hovering submenu itself to avoid disappearing when moving cursor */
  display: flex;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-content {
  z-index: 5;
  /* 以前の negative margin/padding は不要 */
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start; /* ブロックを左揃えに */
  text-align: left;       /* 内部テキストも左寄せ */
}

/* 大きい画面ではナビとぶつからないよう余白をプラス */
@media (min-width: 1200px) {
  .hero-content {
    margin-top: 80px;
  }
}

.hero-description {
  font-size: clamp(1rem, 2.1vw, 1.4rem);
  line-height: 1.7;
  max-width: 72ch;
  margin: 20px auto 0;
  color: var(--text);
}

.eyebrow {
  color: var(--muted);
  margin-bottom: 8px;
  /* 左寄せレイアウトに合わせて変更 */
  text-align: left;
  max-width: min(420px, 75vw);
  width: 100%;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

/* logo heading replacement */
.logo-heading img {
  width: min(420px, 75vw);
  height: auto;
  display: block;
  margin: 0; /* left align */
}

.lead {
  /* compact header subtitle, single line without scrollbar */
  font-size: clamp(0.6rem, 1.4vw, 0.95rem);
  margin: 20px 0 28px;
  /* allow overflow without scrollbar */
  white-space: nowrap;
  overflow: visible;
  text-align: left;
  max-width: min(420px, 75vw);
  width: 100%;
}

.cta {
  display: inline-block;
  color: #08101e;
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
}

.section {
  padding: 74px 0;
}

/* screenshots for case study pages */
.screenshots {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.screenshots img {
  flex: 0 0 auto;
  height: auto;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}
@media (max-width: 900px) {
  .screenshots img {
    max-width: 200px;
  }
}
@media (max-width: 600px) {
  .screenshots img {
    max-width: 160px;
  }
}
.badge img {
  max-width: 240px;
  height: auto;
  display: block;
  margin: 12px auto 0;
}

/* banner above overview section */
.overview-banner {
  text-align: center;
  margin: 40px 0 0;
}
.overview-banner img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* full-size central image under overview */
.overview-main {
  position: relative;
  text-align: center;
  margin: 24px 0;
}
.overview-main img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100%;
  border: 4px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* image inside feature article */
.feature-image {
  text-align: center;
  margin-top: 16px;
}
.feature-image img {
  display: block;
  margin: 0 auto;
  max-width: 35%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
/* left-aligned variant for feature image */
.feature-image.left {
  text-align: left;
}
.feature-image.left img {
  display: inline-block;
  margin: 0;
}
@media (max-width: 600px) {
  .feature-image img {
    max-width: 85%;
  }
  .feature-image.left img {
    max-width: 85%;
  }
}

/* images attached to examples in usage section */
.example-image {
  text-align: center;
  margin: 12px 0 0;
}
.example-image img {
  max-width: 30%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 600px) {
  .example-image img {
    max-width: 100%;
  }
}

.manual-image {
  text-align: center;
  margin-top: 12px;
}
.manual-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.section p {
  color: var(--muted);
}

/* about section replacement text styling */
.about-text {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.8;
  color: var(--text);
  max-width: 68ch;
  margin: 0 auto;
}

.about-page {
  display: grid;
  gap: 34px;
}

.about-hero-block {
  background: linear-gradient(140deg, rgba(141, 182, 255, 0.12), rgba(16, 19, 26, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 36px);
}

.about-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
}

.about-hero-block h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.about-hero-image,
.service-hero-image {
  display: block;
  /* fill the padded container but leave 5px gap each side */
  width: calc(100% + 10px);
  margin: 16px -5px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: none;
}

.about-lead {
  margin: 16px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
}

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

.about-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.about-card p {
  margin: 0;
}

.company-profile {
  background: linear-gradient(165deg, rgba(20, 24, 34, 0.96), rgba(9, 11, 16, 0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.company-profile h3 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}

.company-profile dl {
  margin: 0;
}

.company-profile dl div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.company-profile dl div:last-child {
  border-bottom: none;
}

.company-profile dt {
  color: #dbe4ff;
  font-weight: 700;
}

.company-profile dd {
  margin: 0;
  color: var(--muted);
}

.service-page,
.case-page {
  display: grid;
  gap: 34px;
}

.service-hero-block,
.case-hero-block {
  background: linear-gradient(140deg, rgba(141, 182, 255, 0.1), rgba(16, 19, 26, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 36px);
}

.service-hero-block h2,
.case-hero-block h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.service-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch; /* make all cells equal height */
}

.service-panel {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;          /* use flex layout for consistent vertical sizing */
  flex-direction: column;
  gap: 12px;
  height: 100%;           /* ensure panel fills its grid cell */
}

.service-panel img,
.service-panel-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top center; /* show header/top area */
  border-radius: 8px;
}

/* variant for images that should not be cropped or distorted */
.service-panel-image--no-crop {
  object-fit: cover;
  object-position: top left;
  aspect-ratio: 4 / 3;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.service-panel-image--contain {
  object-fit: contain;
  object-position: center;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
}

.service-panel h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.service-panel p {
  margin: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch; /* ensure each grid cell matches tallest */
}

.case-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* 固定高さに設定し、テキストが長い場合は省略 */
  height: 360px;
}

.case-content {
  padding: 18px;
  flex: 1; /* take remaining space so all cards equal height */
  overflow: hidden; /* hide overflowing text */
}

.case-content h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.case-content p {
  margin: 0;
  /* text clamping */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 5; /* standard property for compatibility */
  -webkit-line-clamp: 5; /* adjust lines as needed */
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-grid,
.work-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-work-link {
  grid-column: 1 / -1;
}

.featured-work-card {
  background:
    radial-gradient(circle at top right, rgba(255, 123, 0, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 111, 0, 0.16), rgba(16, 19, 26, 0.96) 42%, rgba(9, 11, 16, 1));
  border: 1px solid rgba(255, 132, 0, 0.38);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  min-height: 320px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.featured-work-copy {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  gap: 14px;
}

.featured-work-badge {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 123, 0, 0.18);
  border: 1px solid rgba(255, 152, 70, 0.4);
  color: #ffd7b0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.featured-work-logo {
  width: min(260px, 55vw);
  height: auto;
}

.featured-work-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}

.featured-work-card p:not(.featured-work-badge) {
  margin: 0;
  color: #e6ecff;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.8;
}

.featured-work-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8f1f, #ff6b00);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.25);
}

.featured-work-media {
  padding: clamp(20px, 3vw, 34px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-work-media img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card,
.work-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.card h3,
.work-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.work-card {
  padding: 0;
  overflow: hidden;
}

/* remove default link styling for grid items and add hover effect */
.work-grid a,
.case-grid a,
.service-panel-grid a {
  color: inherit;
  text-decoration: none;
  display: block; /* make clickable area full card */
  height: 100%; /* fill grid cell for equal height */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-grid a:hover,
.case-grid a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.work-grid a:focus,
.case-grid a:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

.work-card img {
  width: 100%;
  /* uniform fixed height ensures all cards appear equal regardless of source image aspect ratio */
  height: 180px;
  object-fit: cover;
}

.case-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* responsive adjustments for smaller screens */
@media (max-width: 900px) {
  .featured-work-card {
    grid-template-columns: 1fr;
  }

  .work-card img,
  .case-card img {
    height: 140px;
  }
}

@media (max-width: 600px) {
  .featured-work-copy,
  .featured-work-media {
    padding: 20px;
  }

  .work-card img,
  .case-card img {
    height: 120px;
  }
}

.work-card div {
  padding: 16px 18px 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(89, 104, 145, 0.16), rgba(0, 0, 0, 0) 34%),
    linear-gradient(110deg, #111318 0%, #191d27 50%, #111318 100%);
}

.footer-inner {
  padding: 72px 0 54px;
  display: grid;
  gap: 34px;
}

/* footer navigation links */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 26px;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-logo {
  width: clamp(260px, 34vw, 460px);
  height: auto;
}

.footer-sub {
  margin: 0;
  color: #d2d9ed;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-column h4 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-column a::before {
  content: "—";
  opacity: 0.75;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 6px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

/* contact form styling */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
}

.required-mark {
  color: #ff6b6b;
  margin-left: 4px;
  font-size: 0.9em;
  vertical-align: top;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(141, 182, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5c6784;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

/* message shown after successful submission (AJAX) */
.success-message {
  display: none;
  padding: 20px;
  margin-top: 1.5em;
  background-color: #e6ffed;
  border: 1px solid #4caf50;
  border-radius: 8px;
  color: #2e7d32;
  font-weight: 600;
}

.submit-btn {
  display: inline-block;
  background: var(--accent);
  color: #08101e;
  border: none;
  padding: 16px 48px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 100%;
  max-width: 300px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 24px;
  }
}

/* privacy policy formatting */
.privacy-page {
  display: grid;
  gap: 32px;
}
.policy-block {
  /* solid dark base helps WebView and provides consistent contrast */
  background: var(--bg);
  /* gradient on top of the base, with transparent stops so the dark
     color shows through if the gradient rendering is weak */
  background: linear-gradient(140deg, rgba(141,182,255,0.08), rgba(16,19,26,0.9)), var(--bg);
  color: var(--text);               /* ensure readable text on any background */
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}
.policy-block h3 {
  margin-top: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}
.policy-block ul,
.policy-block ol {
  margin: 12px 0 0 20px;
}
.policy-block a {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .service-grid,
  .work-grid,
  .about-grid,
  .service-panel-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4%;
    position: relative;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0c12;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    gap: 20px;
    padding: 60px 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    font-size: 1.5rem;
    padding: 15px;
  }

  /* Handle submenu on mobile */
  .site-nav .has-submenu .submenu {
    position: static;
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    text-align: center;
    min-width: auto;
  }
  
  .site-nav .has-submenu:hover .submenu {
    display: block;
  }

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

  .company-profile dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* CariBloc Specific Styles */
.overview-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 0;
}
.overview-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.overview-main {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.overview-main img {
  max-width: 60%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
@media (max-width: 600px) {
  .overview-main img {
    max-width: 90%;
  }
}
.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-right: 8px;
  font-weight: normal;
  font-style: normal;
  font-size: 1.2em;
  line-height: 1;
  /* 'speak' property removed for broader compatibility */
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

/* optional: hide v2 invisible reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
  /* or use display:none!important; if hiding entirely */
}

/* support both material-icons and material-symbols-outlined */
.material-icons.icon-inline {
  font-family: 'Material Icons';
}
.material-symbols-outlined.icon-inline,
.material-symbols-outlined {
  /* any element using the outlined variant should use this font */
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
}

/* if you put the icon name on multiple lines, collapse whitespace */
.material-symbols-outlined {
  white-space: nowrap;
}
.example-item {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.example-item:last-child {
  border-bottom: none;
}
.example-image {
  margin-top: 24px;
}
.example-image img {
  max-width: 35%;
  height: auto;
  border-radius: 12px;
}

/* enlarge example screenshots on small screens so they fill width */
@media (max-width: 600px) {
  .example-image img {
    max-width: 100%;
  }
}
.manual-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
.manual-table th, .manual-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.manual-table th {
  background: var(--surface-soft);
  color: var(--accent);
}
.manual-table img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.os-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.os-table th {
  width: 120px;
  padding: 12px;
  background: var(--surface-soft);
  text-align: left;
  border: 1px solid var(--line);
}
.os-table td {
  padding: 12px;
  border: 1px solid var(--line);
}
.app-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.cta img {
  height: 50px;
  width: auto;
}
.cta-text {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.cta-text:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .footer-inner {
    padding: 52px 0 38px;
    gap: 26px;
  }

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

  .footer-column h4 {
    font-size: 1.2rem;
  }
}