:root {
  --header-border: #69c4ff;
  --text-color: #111111;
  --contact-bg: #fff100;
  --contact-text: #ff4b00;
  --page-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-color);
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

body.index-shell {
  overflow: hidden;
}

.index-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at center 0%, #c7e6fa 0%, #98c5e7 72%, #75a2c5 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(110, 181, 224, 0.1));
}

.site-header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 108px;
  padding: 20px 36px 16px;
  background: transparent;
  border-bottom: 1px solid rgba(105, 196, 255, 0.7);
}

.site-header a,
.site-header button,
.site-header select {
  color: var(--text-color);
  font-family: inherit;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo-mark,
.site-logo-text {
  font-size: 40px;
  font-weight: 700;
}

.site-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  min-width: 0;
  flex-wrap: wrap;
}

.site-menu-link {
  position: relative;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 600;
}

.site-menu-link.is-active::after,
.site-menu-link:hover::after,
.site-menu-link:focus-visible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--header-border);
}

.site-contact {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--contact-bg);
  color: var(--contact-text);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.contact-page {
  min-height: 100%;
}

.site-lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.site-lang-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  line-height: 1;
  color: var(--text-color);
}

.site-lang-icon {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-lang-icon * {
  fill: none;
  stroke: currentColor;
}

.site-lang-select {
  min-width: 116px;
  padding: 12px 18px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
}

.page-main {
  flex: 1 1 auto;
  padding: 0;
  min-height: 0;
  overflow-y: auto;
}

.index-shell,
.index-main,
[data-page-frame] {
  width: 100%;
}

.page-title {
  margin: 0 0 16px;
  font-size: 52px;
  font-weight: 600;
}

.page-copy {
  margin: 0;
  font-size: 28px;
  line-height: 1.8;
}

.company-page {
  min-height: auto;
  padding: 56px 48px 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 247, 255, 0.92));
}

.company-hero {
  display: grid;
  gap: 24px;
  margin: 0 auto 40px;
  max-width: 1180px;
  padding: 40px 42px;
  border: 1px solid rgba(105, 196, 255, 0.28);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(52, 103, 140, 0.12);
  backdrop-filter: blur(10px);
}

.company-kicker {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d82b7;
}

.company-title {
  margin-bottom: 20px;
}

.company-lead {
  max-width: 880px;
  color: #34495e;
}

.company-section {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 32px 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(52, 103, 140, 0.1);
}

.company-section-title {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f3554;
}

.company-section-copy {
  margin: 0;
  font-size: 20px;
  line-height: 1.95;
  color: #34495e;
}

.company-summary-grid {
  display: grid;
  gap: 14px;
}

.company-summary-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(105, 196, 255, 0.18);
}

.company-summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.company-summary-label {
  font-size: 18px;
  font-weight: 700;
  color: #2d82b7;
}

.company-summary-value {
  font-size: 20px;
  line-height: 1.8;
  color: #1f2f3d;
}

.company-list {
  margin: 0;
  padding-left: 28px;
}

.company-list-item {
  margin-bottom: 18px;
  padding-left: 8px;
  color: #1f2f3d;
  font-size: 20px;
  line-height: 1.9;
}

.company-list-item strong {
  display: block;
  margin-bottom: 4px;
  color: #0f3554;
}

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

.company-card {
  padding: 0;
}

.company-bullet-list {
  margin: 0;
  padding-left: 24px;
  color: #1f2f3d;
}

.company-bullet-list li {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.85;
}

.company-mission {
  margin: 0 0 20px;
  padding: 20px 24px;
  border-left: 4px solid #2d82b7;
  border-radius: 0 18px 18px 0;
  background: rgba(105, 196, 255, 0.1);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  color: #0f3554;
}

.news-page {
  padding-bottom: 96px;
}

.news-article {
  max-width: 980px;
}

.news-date {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2d82b7;
}

.news-block + .news-block {
  margin-top: 28px;
}

.news-heading {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #0f3554;
}

.products-subheading {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a567f;
}

.case-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 8px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.case-gallery > * {
  flex: 0 0 min(280px, 72vw);
}

.case-card {
  display: grid;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.case-card-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(52, 103, 140, 0.12);
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.case-card:hover .case-card-media img {
  transform: scale(1.04);
}

.case-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f3554;
}

.news-media {
  margin: 28px 0;
}

.news-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(52, 103, 140, 0.12);
}

.case-page {
  padding-bottom: 96px;
}

.case-hero {
  max-width: 980px;
}

.case-media {
  margin: 28px 0;
}

.case-media img,
.case-media video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(52, 103, 140, 0.12);
  background: #ffffff;
}

.case-list {
  margin: 0;
  padding-left: 24px;
}

.case-list li {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.85;
  color: #1f2f3d;
}

.workflow-steps {
  display: grid;
  gap: 18px;
}

.workflow-step {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.workflow-step-number {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2d82b7;
}

.workflow-faq {
  display: grid;
  gap: 24px;
}

.workflow-faq-item {
  padding-top: 8px;
  border-top: 1px solid rgba(105, 196, 255, 0.18);
}

.workflow-page .company-hero {
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workflow-page .company-title {
  margin-bottom: 0;
  font-size: 44px;
}

.workflow-page .news-article {
  margin-top: 0;
}

.workflow-page .company-section {
  padding-top: 0;
}

.workflow-page .company-section-title {
  font-size: 28px;
  margin-bottom: 14px;
}

.workflow-page .company-section-copy,
.workflow-page .case-list li {
  font-size: 18px;
  line-height: 1.8;
}

.contact-mail-link {
  color: #0f3554;
  text-decoration: none;
  font-weight: 700;
}

.contact-mail-link:hover,
.contact-mail-link:focus-visible {
  text-decoration: underline;
}

.company-page .company-hero,
.news-page .company-hero,
.products-page .company-hero {
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.company-page .company-title,
.news-page .company-title,
.products-page .company-title {
  margin-bottom: 0;
  font-size: 44px;
}

.company-page .company-section-title,
.news-page .company-section-title,
.products-page .company-section-title {
  font-size: 28px;
  margin-bottom: 14px;
}

.company-page .company-section-copy,
.company-page .company-summary-value,
.company-page .company-list-item,
.company-page .company-bullet-list li,
.news-page .company-section-copy,
.products-page .company-section-copy {
  font-size: 18px;
  line-height: 1.8;
}

.news-caption {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #557089;
}

.index-main {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0;
}

[data-page-frame] {
  height: 100%;
  background: transparent;
}

.top-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 620px) minmax(220px, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 24px 28px;
  padding: 24px 20px 28px;
  background:
    radial-gradient(circle at center 0%, #c7e6fa 0%, #98c5e7 72%, #75a2c5 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(110, 181, 224, 0.1));
  overflow: hidden;
}

.top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.65) 0 2px, transparent 3px),
    radial-gradient(circle at 8% 80%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px);
  pointer-events: none;
  animation: top-hero-glow 12s ease-in-out infinite alternate;
}

.top-hero::after {
  content: "";
  position: absolute;
  inset: 10% 20% auto;
  height: 34%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.top-hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.top-hero-center {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-hero-image-wrap {
  width: min(40vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.8), 0 0 60px rgba(66, 210, 220, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.top-hero-image-wrap:hover {
  transform: scale(1.03);
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.88), 0 0 70px rgba(66, 210, 220, 0.45);
}

.top-hero-image {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}

.top-hero-button {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle at 35% 35%, #fffab4 0%, #ffe646 60%, #f0c81e 100%);
  box-shadow: 0 0 25px rgba(255, 235, 100, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.85), 0 12px 30px rgba(0, 40, 50, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1a1600;
  text-decoration: none;
  text-align: center;
  padding: 22px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
}

.top-hero-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px rgba(255, 245, 120, 0.95), inset 0 0 25px rgba(255, 255, 255, 1), 0 18px 40px rgba(0, 40, 50, 0.35);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffea55 60%, #f8d020 100%);
}

.top-hero-button-company {
  grid-column: 1;
  grid-row: 1;
}

.top-hero-button-products {
  grid-column: 3;
  grid-row: 1;
}

.top-hero-button-workflow {
  grid-column: 1;
  grid-row: 2;
}

.top-hero-button-contact {
  grid-column: 3;
  grid-row: 2;
}

.top-hero-button-icon {
  width: 58px;
  height: 58px;
  fill: #3b3300;
  transition: transform 0.3s ease;
}

.top-hero-button:hover .top-hero-button-icon {
  transform: translateY(-4px) scale(1.05);
}

.top-hero-button-title {
  font-size: 28px;
  font-weight: 800;
}

.top-hero-button-copy {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: #4a4210;
}

@keyframes top-hero-glow {
  0% {
    opacity: 0.75;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 10px, 0) scale(1.03);
  }
}

@media (max-width: 1080px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto; /* left: logo/menu, right: language selector */
    grid-template-rows: auto auto auto;
    gap: 12px;
    padding: 12px 16px;
    /* place elements */
  }

  /* logo (company name) takes full width */
  .site-header .site-logo {
    grid-column: 1 / -1;
  }

  /* menu spans full width */
  .site-header .site-menu {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  /* contact button left, language selector right */
  .site-header .site-contact {
    grid-column: 1;
    justify-self: start;
  }
  .site-header .site-lang {
    grid-column: 2;
    justify-self: end;
    align-self: center;
  }

  .site-menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }

  .site-logo-mark,
  .site-logo-text,
  .site-menu-link,
  .site-contact,
  .site-lang-label,
  .site-lang-select {
    font-size: 18px;
  }

  .site-header {
    min-height: auto;
  }

  .site-menu-link.is-active::after,
  .site-menu-link:hover::after,
  .site-menu-link:focus-visible::after {
    bottom: -6px;
  }

  .site-contact {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 16px;
  }

  .page-main {
    padding: 0;
  }

  .company-page {
    padding: 28px 20px 40px;
  }

  .company-hero,
  .company-section {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .company-section-title {
    font-size: 26px;
  }

  .company-section-copy,
  .company-summary-value,
  .company-list-item,
  .company-bullet-list li {
    font-size: 17px;
    line-height: 1.85;
  }

  .company-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .company-summary-label {
    font-size: 16px;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .company-mission {
    padding: 16px 18px;
    font-size: 22px;
  }

  .news-heading {
    font-size: 20px;
  }

  .products-subheading {
    font-size: 18px;
  }

  .case-gallery > * {
    flex-basis: min(240px, 76vw);
  }

  .case-card-title {
    font-size: 17px;
  }

  .case-list li {
    font-size: 17px;
  }

  .workflow-step {
    padding: 0;
  }

  .workflow-page .company-title {
    font-size: 34px;
  }

  .company-page .company-title,
  .news-page .company-title,
  .products-page .company-title {
    font-size: 34px;
  }

  .workflow-page .company-section-title {
    font-size: 24px;
  }

  .company-page .company-section-title,
  .news-page .company-section-title,
  .products-page .company-section-title {
    font-size: 24px;
  }

  .top-hero {
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    padding: 24px 20px 40px;
  }

  .top-hero-center {
    grid-column: 1;
    grid-row: 1;
  }

  .top-hero-particles {
    display: none;
  }

  .top-hero-image-wrap {
    width: min(78vw, 360px);
  }

  .top-hero-button {
    position: static;
    width: min(100%, 320px);
    height: 140px;
    border-radius: 70px;
    padding: 20px 24px;
    gap: 8px;
  }

  .top-hero-button-icon {
    width: 38px;
    height: 38px;
  }

  .top-hero-button-title {
    font-size: 24px;
  }

  .top-hero-button-copy {
    font-size: 14px;
  }

  .top-hero-button-company,
  .top-hero-button-products,
  .top-hero-button-workflow,
  .top-hero-button-contact {
    grid-column: 1;
    grid-row: auto;
  }

  /* Narrow view: make language selector smaller */
  .site-lang-select {
    min-width: 80px;
    font-size: 16px;
  }
}
