/* ========================================
   BASE
======================================== */

:root {
  --navy: #061326;
  --navy-2: #0a223d;
  --blue: #197ab7;
  --cyan: #59d8ff;
  --text: #172338;
  --muted: #68788c;
  --line: #dce6ed;
  --header-height: 88px;
  --section-angle: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "M PLUS 2", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(980px, calc(100% - 48px));
}

.section {
  position: relative;
}

.section-anchor {
  position: absolute;
  top: calc(var(--section-angle) + 30px);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: calc(var(--header-height) + 6px);
}

/* ========================================
   HEADER
======================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  background: rgba(4, 15, 30, 0.52);
  border-bottom: 1px solid rgba(100, 220, 255, 0.2);
  backdrop-filter: blur(15px) saturate(135%);
  -webkit-backdrop-filter: blur(15px) saturate(135%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.site-header__inner {
  width: min(1420px, calc(100% - 50px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__logo-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 17px 8px;
}

.site-header__logo-copy::before,
.site-header__logo-copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.86;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.site-header__logo-copy::before {
  top: 1px;
  left: 0;
  width: 25px;
  height: 10px;
  border-top: 1px solid rgba(109, 228, 255, 0.95);
  border-left: 3px solid rgba(109, 228, 255, 0.95);
  transform: skewX(-18deg);
  filter: drop-shadow(0 0 5px rgba(82, 213, 255, 0.35));
}

.site-header__logo-copy::after {
  right: 0;
  bottom: 1px;
  width: 35px;
  height: 9px;
  border-right: 3px solid rgba(84, 181, 246, 0.9);
  border-bottom: 1px solid rgba(84, 181, 246, 0.9);
  transform: skewX(-18deg);
  filter: drop-shadow(0 0 5px rgba(74, 182, 255, 0.3));
}

.site-header__logo-main {
  position: relative;
  display: block;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.035em;
  text-shadow:
    0 0 5px rgba(111, 225, 255, 0.58),
    0 0 16px rgba(37, 148, 218, 0.24),
    0 2px 5px rgba(0, 0, 0, 0.38);
  transition: text-shadow 0.2s ease;
}

.site-header__logo-main::after {
  content: "";
  position: absolute;
  left: 1%;
  bottom: -7px;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, rgba(101, 221, 255, 0.95), rgba(101, 221, 255, 0.16), transparent);
  box-shadow: 0 0 7px rgba(89, 216, 255, 0.4);
}

.site-header__logo:hover .site-header__logo-main {
  text-shadow:
    0 0 7px rgba(111, 225, 255, 0.76),
    0 0 21px rgba(37, 148, 218, 0.38),
    0 2px 5px rgba(0, 0, 0, 0.38);
}

.site-header__logo:hover .site-header__logo-copy::before,
.site-header__logo:hover .site-header__logo-copy::after {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(83, 215, 255, 0.48));
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.site-header__nav-link {
  position: relative;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-decoration: none;
}

.site-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #65dcff, transparent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-header__nav-link:hover::after,
.site-header__nav-link.is-current::after {
  transform: scaleX(1);
}

.site-header__nav-link.is-current {
  color: #a9edff;
  cursor: default;
  text-shadow: 0 0 10px rgba(92, 220, 255, 0.34);
}

.site-header__x {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header__x svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-header__x:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 17px rgba(83, 215, 255, 0.34);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  padding: 12px 24px 20px;
  background: rgba(5, 18, 34, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a,
.mobile-menu__current {
  display: block;
  padding: 14px 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__current {
  position: relative;
  color: #a9edff;
}

.mobile-menu__current::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 8px;
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, #65dcff, transparent);
  box-shadow: 0 0 6px rgba(101, 220, 255, 0.45);
}

.mobile-menu.is-open {
  display: block;
}

/* ========================================
   HERO
======================================== */

.home-hero {
  position: relative;
  z-index: 1;
  min-height: 800px;
  padding: calc(var(--header-height) + 48px) 0 145px;
  overflow: hidden;
  isolation: isolate;
  background: #041225;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -7%;
  background-image:
    linear-gradient(rgba(3, 12, 25, 0.10), rgba(3, 12, 25, 0.48)),
    url("../img/top_main_bg.webp");
  background-size: cover;
  background-position: center;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(50, 203, 255, 0.16), transparent 25%),
    radial-gradient(circle at 80% 25%, rgba(61, 115, 255, 0.15), transparent 27%),
    linear-gradient(rgba(100, 220, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 220, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
}


.home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1560px, calc(100% - 12px));
  max-width: none;
  text-align: center;
}

/* ========================================
   CAROUSEL
======================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  animation: hero-carousel-enter 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes hero-carousel-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 12% 14% 18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(71, 216, 255, 0.24), rgba(48, 116, 239, 0.11) 42%, transparent 72%);
  filter: blur(26px);
}

.hero-carousel__viewport {
  overflow: hidden;
  padding: 18px 0 28px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.hero-carousel__track {
  display: flex;
  align-items: center;
  gap: 25px;
  will-change: transform;
  transition: transform 0.68s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-carousel__track.no-transition {
  transition: none !important;
}

.hero-carousel.is-jumping .hero-slide {
  transition: none !important;
}

.hero-slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 min(63vw, 980px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 225, 255, 0.31);
  border-radius: 17px;
  background: transparent;
  cursor: pointer;
  opacity: 0.42;
  transform: scale(0.92);
  filter: saturate(0.8) brightness(0.76);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(67, 205, 255, 0.1);
  transition:
    transform 0.48s ease,
    opacity 0.48s ease,
    filter 0.48s ease,
    box-shadow 0.48s ease;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.hero-slide::before {
  background:
    linear-gradient(118deg, rgba(118, 230, 255, 0.09), transparent 24%, transparent 72%, rgba(92, 151, 255, 0.08)),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 19%);
}

.hero-slide::after {
  inset: auto 7% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(93, 225, 255, 0.78), rgba(101, 145, 255, 0.48), transparent);
  box-shadow: 0 0 11px rgba(83, 214, 255, 0.42);
  opacity: 0.48;
  transition: opacity 0.48s ease, box-shadow 0.48s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
  border-color: rgba(124, 232, 255, 0.66);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(181, 243, 255, 0.08) inset,
    0 0 31px rgba(69, 210, 255, 0.46),
    0 0 72px rgba(52, 130, 224, 0.22);
}

.hero-slide.is-active::after {
  opacity: 1;
  box-shadow:
    0 0 10px rgba(103, 231, 255, 0.68),
    0 0 22px rgba(70, 145, 255, 0.28);
}

.hero-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-carousel__arrow {
  position: absolute;
  top: 44%;
  z-index: 10;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(5, 18, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-carousel__arrow svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-carousel__arrow:hover {
  transform: scale(1.06);
  background: rgba(17, 105, 166, 0.92);
  box-shadow: 0 0 18px rgba(75, 210, 255, 0.35);
}

.hero-carousel__arrow--prev { left: 28px; }
.hero-carousel__arrow--next { right: 28px; }

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 3px;
}

.hero-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-carousel__dot.is-active {
  width: 31px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 13px rgba(91, 220, 255, 0.68);
}

.home-hero__copy {
  margin: 30px auto 25px;
  color: #fff;
}

.home-hero__copy-main {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 35px);
  font-weight: 900;
  letter-spacing: 0.035em;
  text-shadow:
    0 0 8px rgba(88, 214, 255, 0.58),
    0 0 20px rgba(24, 117, 204, 0.32),
    0 3px 8px rgba(0, 0, 0, 0.58);
}

.home-hero__copy-sub {
  margin: 6px 0 0;
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 7px rgba(79, 204, 255, 0.43),
    0 2px 8px rgba(0, 0, 0, 0.55);
}

/* ========================================
   COMMON BUTTON / HEADING
======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--light {
  color: #082947;
  background: linear-gradient(135deg, #fff, #dff8ff);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 19px rgba(72, 208, 255, 0.25);
}

.button--outline {
  color: #123f64;
  background: #fff;
  border: 1px solid rgba(20, 111, 171, 0.3);
  box-shadow: 0 8px 20px rgba(24, 92, 140, 0.1);
}

.section-heading {
  margin-bottom: 43px;
  text-align: center;
}

.section-heading__en {
  margin: 0;
  color: #2788c5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.23em;
}

.section-heading h2 {
  margin: -2px 0 0;
  color: #101820;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0.045em;
  text-shadow: 0 0 8px rgba(43, 154, 211, 0.16);
}

.section-heading::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, #47c9f5, transparent);
  box-shadow: 0 0 9px rgba(72, 200, 245, 0.48);
}

.section-heading__lead {
  margin: 12px 0 0;
  color: var(--muted);
}

.section-heading--light {
  color: #fff;
}

.section-heading--light .section-heading__en {
  color: #72e2ff;
}

.section-heading--light h2 {
  color: #fff;
  text-shadow:
    0 0 9px rgba(83, 219, 255, 0.52),
    0 0 22px rgba(36, 116, 194, 0.28);
}

.section-heading--light .section-heading__lead {
  color: rgba(255, 255, 255, 0.76);
}

.section-action {
  margin-top: 36px;
  text-align: center;
}

/* ========================================
   NEWS SECTION
   次の背景が前の背景へ重なることで、
   斜め境界の途中に隙間が出ない構造。
======================================== */

.home-news {
  z-index: 2;
  margin-top: calc(var(--section-angle) * -1);
  padding: calc(82px + var(--section-angle)) 0 140px;
  background:
    radial-gradient(circle at 14% 18%, rgba(62, 182, 238, 0.1), transparent 27%),
    linear-gradient(135deg, #fbfdff, #eef7fd);
  clip-path: polygon(0 var(--section-angle), 100% 0, 100% 100%, 0 100%);
}

.news-list,
.news-archive {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(25, 102, 155, 0.14);
  border-radius: 16px;
  box-shadow:
    0 18px 42px rgba(23, 77, 119, 0.12),
    0 0 18px rgba(62, 180, 231, 0.05);
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 15px 23px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 36, 63, 0.11);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(#70defd, #217db4);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item:hover {
  padding-left: 29px;
  background: #f2f9fd;
}

.news-item:hover::before {
  transform: scaleY(1);
}

.news-item time {
  color: #748298;
  font-size: 13px;
  font-weight: 700;
}

.news-item__title {
  overflow: hidden;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 9px rgba(14, 37, 63, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.news-tag--release {
  background: linear-gradient(135deg, #e65b64 0%, #c83e55 58%, #a9334d 100%);
}

.news-tag--sale {
  background: linear-gradient(135deg, #3b96d6 0%, #226eb5 58%, #325dc0 100%);
}

.news-tag--campaign {
  background: linear-gradient(135deg, #f1a544 0%, #dc7f30 58%, #be5f35 100%);
}

.news-tag--other {
  background: linear-gradient(135deg, #8d99a7 0%, #697887 58%, #596575 100%);
}

/* ========================================
   APP SECTION
======================================== */

.home-apps {
  z-index: 3;
  margin-top: calc(var(--section-angle) * -1);
  padding: calc(84px + var(--section-angle)) 0 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(54, 150, 211, 0.28), transparent 36%),
    radial-gradient(circle at 85% 30%, rgba(44, 196, 255, 0.16), transparent 35%),
    linear-gradient(145deg, #061325, #0a223d 60%, #061325);
  clip-path: polygon(0 var(--section-angle), 100% 0, 100% 100%, 0 100%);
}

.home-apps::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.home-apps .wrap {
  position: relative;
  z-index: 1;
}

.home-apps__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 205px));
  justify-content: center;
  gap: 30px;
  padding-inline: 8px;
  content-visibility: auto;
  contain-intrinsic-size: auto 2200px;
}

.app-card {
  position: relative;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d9e4eb;
  border-radius: 17px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 0 15px rgba(71, 190, 236, 0.07);
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.app-card:hover {
  transform: translateY(-7px);
  border-color: rgba(74, 190, 235, 0.58);
  box-shadow:
    0 27px 50px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(65, 199, 247, 0.15);
}

.has-js .home-apps__list .app-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.48s ease,
    transform 0.48s cubic-bezier(0.2, 0.72, 0.28, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.has-js .home-apps__list.is-reveal-active .app-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.has-js .home-apps__list.is-reveal-active .app-card:hover {
  transform: translateY(-7px) scale(1);
  transition-delay: 0ms;
}

.app-card__icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  border-radius: 13px;
}

.app-card__body {
  display: block;
  padding: 15px 2px 4px;
}

.app-card__maker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-bottom: 9px;
  padding: 4px 9px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #183f63, #1d6d9d);
  border: 1px solid rgba(76, 194, 236, 0.28);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(14, 61, 92, 0.13);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card__maker::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: #7de7ff;
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(125, 231, 255, 0.8);
}

.app-card__title {
  display: -webkit-box;
  min-height: 51px;
  overflow: hidden;
  color: #102239;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.58;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ========================================
   SUB PAGES
======================================== */

.subpage-main {
  position: relative;
  min-height: 80vh;
  padding: calc(var(--header-height) + 63px) 0 100px;
  overflow: hidden;
  isolation: isolate;
  background: #061326;
}

.subpage-main::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -4%;
  background-image:
    linear-gradient(rgba(3, 12, 25, 0.3), rgba(3, 12, 25, 0.68)),
    url("../img/top_main_bg.webp");
  background-size: cover;
  background-position: center top;
}

.subpage-main::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(107, 224, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 224, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(71, 209, 255, 0.16), transparent 25%);
  background-size: 52px 52px, 52px 52px, auto;
}

.subpage-panel {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 5vw, 60px);
  background: #fff;
  border: 1px solid #e0e8ee;
  border-radius: 25px;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.28),
    0 0 21px rgba(64, 189, 239, 0.07);
}

.subpage-hero {
  margin-bottom: 50px;
  text-align: center;
}

.subpage-hero__eyebrow {
  margin: 0;
  color: #2589c7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.subpage-hero h1 {
  margin: 0;
  color: #102c48;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
}

.subpage-hero p {
  margin: 11px 0 0;
  color: #5d6c7f;
}

.news-archive {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.news-archive .news-item[hidden] {
  display: none;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.news-pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  color: #17496b;
  background: #fff;
  border: 1px solid #d5e2ea;
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(20, 71, 108, 0.07);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.news-pagination button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #eefaff;
}

.news-pagination button[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, #1977b6, #41c8f1);
  border-color: transparent;
}

.news-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ========================================
   CONTACT
======================================== */

.contact-faq {
  margin-bottom: 68px;
}

.contact-mail-section {
  margin-top: 68px;
}

.contact-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dce7ed;
}

.contact-section-heading__marker {
  flex: 0 0 auto;
  min-width: 66px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  padding: 0 11px;
  color: #fff;
  background: linear-gradient(135deg, #146fa9, #41c6ef);
  border-radius: 8px 2px 8px 2px;
  box-shadow: 0 7px 17px rgba(25, 114, 166, 0.16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
}

.contact-section-heading--mail .contact-section-heading__marker {
  background: linear-gradient(135deg, #193d66, #247fb8);
}

.contact-section-heading h2 {
  margin: 0;
  color: #163650;
  font-size: clamp(23px, 2.7vw, 31px);
  font-weight: 900;
  line-height: 1.28;
}

.contact-section-heading p {
  margin: 6px 0 0;
  color: #647487;
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #dce7ed;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(24, 78, 114, 0.07);
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.faq-item__q {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1c78b7, #43c8f3);
  border-radius: 8px;
  font-weight: 900;
}

.faq-item__question h3 {
  margin: 0;
  color: #16334f;
  font-size: 17px;
  font-weight: 900;
}

.faq-item__body {
  padding-left: 44px;
  color: #4c5d70;
  font-size: 14px;
}

.faq-item__body p {
  margin: 7px 0 15px;
}

.faq-item__body h4 {
  margin: 18px 0 5px;
  color: #173b59;
  font-size: 15px;
}

.faq-note {
  padding: 12px 14px;
  background: #edf9fd;
  border-left: 3px solid #42bde9;
  border-radius: 0 7px 7px 0;
}

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

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 29px;
  background: #fff;
  border: 1px solid #dce7ed;
  border-radius: 18px;
  box-shadow: 0 15px 36px rgba(23, 77, 119, 0.09);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#60dcff, #196fa8);
}

.contact-card h3 {
  margin: 0 0 18px;
  color: #163650;
  font-size: 20px;
  font-weight: 900;
}

.contact-card__buttons {
  display: flex;
  gap: 12px;
}

.contact-mail {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-mail:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.contact-mail--ios {
  background: linear-gradient(135deg, #252a31, #090b0d);
}

.contact-mail--android {
  background: linear-gradient(135deg, #1179ad, #20a675);
}

.contact-note {
  margin: 24px 0 0;
  color: #677588;
  font-size: 12px;
  text-align: center;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  position: relative;
  z-index: 5;
  padding: 42px 0 31px;
  color: #fff;
  background: #05111f;
  border-top: 1px solid rgba(92, 212, 255, 0.14);
}

.site-footer__inner {
  text-align: center;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.site-footer__nav a {
  display: inline-block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.72);
  text-underline-offset: 4px;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #8fe8ff;
  transform: translateY(-1px);
  text-decoration-color: #8fe8ff;
  text-shadow: 0 0 9px rgba(85, 218, 255, 0.42);
}

.site-footer__copyright {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* ========================================
   APP MODAL
======================================== */

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.app-modal.is-open {
  display: block;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 17, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.app-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}

.app-modal__close {
  position: absolute;
  top: 11px;
  right: 13px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #334258;
  background: #edf2f6;
  border: 0;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.app-modal__icon {
  width: 160px;
  height: 160px;
  margin: 6px auto 18px;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.app-modal__maker {
  margin: 0 0 4px;
  color: #54809c;
  font-size: 12px;
  font-weight: 800;
}

.app-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
}

.app-modal__stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.app-modal__stores a {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-modal__stores a:hover {
  transform: translateY(-2px);
  opacity: 0.82;
}

.app-modal__stores img {
  width: auto;
  height: 42px;
  max-width: 160px;
  object-fit: contain;
}

.app-modal__note {
  margin: 22px 0 0;
  padding: 12px;
  color: #697486;
  background: #f2f5f8;
  border-radius: 9px;
  font-size: 12px;
}

/* ========================================
   PAGE TOP
======================================== */

.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(8, 29, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top.is-visible:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(18, 103, 158, 0.96);
  border-color: rgba(114, 226, 255, 0.68);
  box-shadow:
    0 9px 24px rgba(0, 0, 0, 0.24),
    0 0 17px rgba(84, 214, 255, 0.3);
}

.page-top__arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid currentColor;
  filter: drop-shadow(0 0 4px rgba(103, 226, 255, 0.32));
  transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1180px) {
  .site-header__logo-main { font-size: 26px; }
  .site-header__logo-copy { padding-inline: 15px; }
  .site-header__nav { gap: 30px; }
  .site-header__nav-link { font-size: 16px; }
  .home-apps__list {
    grid-template-columns: repeat(4, minmax(0, 205px));
    gap: 25px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
    --section-angle: 38px;
  }

  .wrap,
  .wrap--narrow {
    width: min(100% - 30px, 1180px);
  }

  .site-header__inner {
    width: calc(100% - 28px);
  }

  .site-header__logo-copy {
    padding: 6px 13px 7px;
  }

  .site-header__logo-main { font-size: 20px; }
  .site-header__logo-main::after { bottom: -6px; width: 42%; }
  .site-header__logo-copy::before { width: 20px; height: 8px; }
  .site-header__logo-copy::after { width: 27px; height: 7px; }
  .site-header__nav { display: none; }
  .menu-button { display: block; }

  .home-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 38px) 0 105px;
  }

  .home-hero__inner {
    width: calc(100% - 8px);
  }

  .hero-carousel__track { gap: 15px; }
  .hero-slide { flex-basis: 82vw; border-radius: 13px; }
  .hero-carousel__arrow { width: 42px; height: 42px; }
  .hero-carousel__arrow svg { width: 22px; height: 22px; }
  .hero-carousel__arrow--prev { left: 8px; }
  .hero-carousel__arrow--next { right: 8px; }
  .home-hero__copy { padding-inline: 18px; }

  .home-news {
    padding: calc(60px + var(--section-angle)) 0 100px;
  }

  .home-apps {
    padding: calc(64px + var(--section-angle)) 0 80px;
  }

  .news-item,
  .news-archive .news-item {
    grid-template-columns: auto auto minmax(0, 1fr);
    justify-content: start;
    gap: 7px 9px;
    min-height: 0;
    padding: 16px 18px;
  }

  .news-item:hover { padding-left: 22px; }
  .news-item time { grid-column: 2; grid-row: 1; }
  .news-tag {
    grid-column: 1;
    grid-row: 1;
    min-height: 25px;
    padding: 2px 8px;
    font-size: 11px;
  }
  .news-item__title { grid-column: 1 / -1; grid-row: 2; white-space: normal; }

  .home-apps__list {
    grid-template-columns: repeat(3, minmax(0, 195px));
    gap: 20px;
    padding-inline: 4px;
  }

  .app-card { padding: 13px; }
  .app-card__title { font-size: 14px; }

  .subpage-main {
    padding: calc(var(--header-height) + 35px) 0 70px;
  }

  .subpage-panel {
    padding: 28px 20px;
    border-radius: 21px;
  }

  .subpage-hero { margin-bottom: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-item { padding: 20px; }
  .faq-item__body { padding-left: 0; }
}

@media (max-width: 560px) {
  .site-header__logo-copy { padding: 5px 10px 6px; }
  .site-header__logo-main { font-size: 16px; letter-spacing: 0.01em; }
  .site-header__logo-main::after { bottom: -5px; }
  .site-header__logo-copy::before { width: 16px; height: 7px; border-left-width: 2px; }
  .site-header__logo-copy::after { width: 22px; height: 6px; border-right-width: 2px; }

  .home-apps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-inline: 0;
  }

  .app-card {
    padding: 11px;
    border-radius: 14px;
  }

  .app-card__body { padding-top: 11px; }
  .app-card__maker { font-size: 10px; padding-inline: 7px; gap: 5px; }
  .app-card__maker::before { width: 5px; height: 5px; flex-basis: 5px; }
  .app-card__title { min-height: 46px; font-size: 13px; line-height: 1.55; }
  .news-tag {
    min-height: 24px;
    padding-inline: 7px;
    font-size: 10.5px;
  }

  .contact-section-heading { gap: 10px; }
  .contact-section-heading__marker {
    min-width: 56px;
    height: 34px;
    font-size: 10px;
    margin-top: 0;
  }
  .contact-section-heading h2 { font-size: 21px; line-height: 1.3; }
  .contact-card__buttons { flex-direction: column; }
  .news-pagination { gap: 6px; }
  .news-pagination button { min-width: 38px; height: 38px; padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ========================================
   SITE LOGO - SVG
======================================== */
.site-header__logo {
  flex: 0 1 auto;
  min-width: 0;
}

.site-header__logo-image {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(520px, 46vw);
  filter: drop-shadow(0 0 5px rgba(70, 214, 255, 0.3));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.site-header__logo:hover .site-header__logo-image {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 9px rgba(70, 214, 255, 0.5));
}

/* ========================================
   ARTICLE PAGES
======================================== */
.news-article-panel {
  padding: clamp(28px, 4.5vw, 56px);
}

.news-article__header {
  padding-bottom: 25px;
  border-bottom: 1px solid #dce7ed;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 13px;
  margin-bottom: 13px;
}

.news-article__date {
  color: #66788b;
  font-size: 13px;
  font-weight: 700;
}

.news-article__title {
  margin: 0;
  color: #102c48;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 0.015em;
}

.news-article__body {
  margin-top: 34px;
  color: #33465a;
  font-size: 15px;
  line-height: 1.9;
}

.news-article__body > :first-child { margin-top: 0; }
.news-article__body p { margin: 0 0 18px; }
.news-article__body ul,
.news-article__body ol { margin: 0 0 24px; padding-left: 1.6em; }
.news-article__body li + li { margin-top: 7px; }

.news-article__lead {
  color: #183953;
  font-size: 17px;
  font-weight: 700;
}

.news-article__heading {
  margin: 38px 0 15px;
  padding: 9px 0 9px 14px;
  color: #153b59;
  border-left: 4px solid #43c9f2;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.news-article__subheading {
  margin: 27px 0 10px;
  color: #173b59;
  font-size: 16px;
  font-weight: 900;
}

.news-article__image {
  width: min(100%, 760px);
  height: auto;
  margin: 26px auto;
  border-radius: 12px;
  box-shadow: 0 13px 32px rgba(13, 55, 86, 0.13);
}

.news-article__image--small {
  width: min(100%, 520px);
}

.news-article__notice {
  margin: 23px 0;
  padding: 17px 19px;
  background: #f2f9fd;
  border-left: 4px solid #3ebce9;
  border-radius: 0 10px 10px 0;
}

.article-app {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 30px 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dce7ed;
  border-radius: 17px;
  box-shadow: 0 13px 30px rgba(20, 74, 110, 0.09);
}

.article-app__icon {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 8px 18px rgba(0,0,0,.13);
}

.article-app__maker {
  margin: 0 0 4px;
  color: #54809c;
  font-size: 12px;
  font-weight: 800;
}

.article-app__title {
  margin: 0;
  color: #102239;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.45;
}

.article-app__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.article-app__stores a {
  display: inline-flex;
  transition: transform .2s ease, opacity .2s ease;
}
.article-app__stores a:hover { transform: translateY(-2px); opacity: .84; }
.article-app__stores img { width: auto; height: 40px; object-fit: contain; }

.news-article__back {
  margin-top: 46px;
  padding-top: 25px;
  border-top: 1px solid #dce7ed;
  text-align: center;
}

.news-article__back a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 9px 22px;
  color: #184a6e;
  background: #fff;
  border: 1px solid #cfe0e9;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.news-article__back a:hover {
  transform: translateY(-2px);
  background: #edfaff;
  box-shadow: 0 7px 18px rgba(27,113,164,.11);
}

@media (max-width: 860px) {
  .site-header__logo-image { height: 42px; max-width: calc(100vw - 92px); }
}

@media (max-width: 560px) {
  .site-header__logo-image { height: 34px; max-width: calc(100vw - 82px); }

  .home-apps__list {
    grid-template-columns: repeat(2, minmax(0, 138px));
    justify-content: center;
    gap: 22px 14px;
    padding-inline: 0;
  }

  .app-card {
    padding: 8px;
    border-radius: 13px;
  }

  .app-card__icon { border-radius: 10px; }
  .app-card__body { padding: 9px 1px 2px; }
  .app-card__maker {
    max-width: 100%;
    margin-bottom: 7px;
    padding: 3px 6px;
    gap: 4px;
    font-size: 9px;
  }
  .app-card__maker::before { width: 4px; height: 4px; flex-basis: 4px; }
  .app-card__title { min-height: 39px; font-size: 11.5px; line-height: 1.48; }

  .app-modal__stores { gap: 8px; }
  .app-modal__stores img { height: 38px; max-width: 145px; }

  .news-article-panel { padding: 25px 17px; }
  .news-article__body { font-size: 14px; line-height: 1.85; }
  .news-article__heading { font-size: 18px; }
  .article-app {
    grid-template-columns: 84px minmax(0,1fr);
    gap: 14px;
    padding: 15px;
  }
  .article-app__icon { width: 84px; height: 84px; }
  .article-app__title { font-size: 15px; }
  .article-app__stores { grid-column: 1 / -1; justify-content: center; }
  .article-app__stores img { height: 36px; }
}

/* ========================================
   2026-08-25 REVISION 3
   - Plain text header logo
   - Mobile app-card spacing rebalance
   - Article title / white panel / prev-next navigation
======================================== */

/* Header logo: text only. No emblem, frame lines or underline ornaments. */
.site-header__logo {
  flex: 0 1 auto;
  min-width: 0;
  color: #fff;
}

.site-header__logo-copy {
  position: static;
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.site-header__logo-main::after {
  content: none;
  display: none;
}

/* Header logo: restrained cyber crest ornaments.
   Kept outside the text so they do not interfere with legibility. */
.site-header__logo-copy {
  position: relative;
}

.site-header__logo-copy::before,
.site-header__logo-copy::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  pointer-events: none;
  opacity: 0.82;
  border: 1px solid rgba(112, 226, 255, 0.92);
  background:
    radial-gradient(circle at 50% 50%, rgba(155, 241, 255, 0.95) 0 1.5px, transparent 2px),
    linear-gradient(135deg, transparent 43%, rgba(91, 211, 255, 0.7) 44% 49%, transparent 50%);
  box-shadow:
    0 0 7px rgba(76, 212, 255, 0.42),
    inset 0 0 6px rgba(74, 187, 255, 0.18);
  transform: translateY(-50%) rotate(45deg);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.site-header__logo-copy::before {
  left: -27px;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.site-header__logo-copy::after {
  right: -27px;
  border-left-color: transparent;
  border-top-color: transparent;
}

.site-header__logo:hover .site-header__logo-copy::before,
.site-header__logo:hover .site-header__logo-copy::after {
  opacity: 1;
  box-shadow:
    0 0 10px rgba(76, 212, 255, 0.58),
    inset 0 0 7px rgba(74, 187, 255, 0.24);
}

.site-header__logo-main {
  position: static;
  display: block;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.035em;
  text-shadow:
    0 0 5px rgba(111, 225, 255, 0.58),
    0 0 16px rgba(37, 148, 218, 0.24),
    0 2px 5px rgba(0, 0, 0, 0.38);
  transition: text-shadow 0.2s ease;
}

.site-header__logo:hover .site-header__logo-main {
  text-shadow:
    0 0 7px rgba(111, 225, 255, 0.74),
    0 0 20px rgba(37, 148, 218, 0.34),
    0 2px 5px rgba(0, 0, 0, 0.38);
}

/* Article area */
.news-article-panel {
  background: #ffffff;
}

.news-article__title {
  font-size: clamp(19px, 2.8vw, 29px);
}

.news-article__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  padding-top: 25px;
  border-top: 1px solid #dce7ed;
}

.news-article__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 20px;
  color: #184a6e;
  background: #ffffff;
  border: 1px solid #cfe0e9;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-article__nav-link--prev { justify-self: start; }
.news-article__nav-link--list { justify-self: center; }
.news-article__nav-link--next { justify-self: end; }

.news-article__nav-link:not(.is-disabled):hover {
  transform: translateY(-2px);
  background: #edfaff;
  border-color: #b9dce9;
  box-shadow: 0 7px 18px rgba(27, 113, 164, .11);
}

.news-article__nav-link.is-disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .site-header__logo-main { font-size: 26px; }
}

@media (max-width: 860px) {
  .site-header__logo-main { font-size: 20px; }
}

@media (max-width: 560px) {
  .site-header__logo-copy { padding: 0; }
  .site-header__logo-main {
    font-size: 16px;
    letter-spacing: 0.01em;
  }

  /* Two cards with the same space at the left, center and right. */
  .home-apps__list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 16px;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .app-card {
    width: 100%;
    padding: 9px;
    border-radius: 13px;
  }

  .app-card__body { padding: 10px 1px 3px; }
  .app-card__maker {
    padding: 3px 7px;
    gap: 4px;
    font-size: 9.5px;
  }
  .app-card__title {
    min-height: 42px;
    font-size: 12px;
    line-height: 1.5;
  }

  .news-article__title {
    font-size: clamp(19px, 6vw, 23px);
    line-height: 1.45;
  }

  .news-article__nav {
    grid-template-columns: 1fr auto 1fr;
    gap: 7px;
    margin-top: 36px;
    padding-top: 21px;
  }

  .news-article__nav-link {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .news-article__nav-link--list {
    padding-inline: 12px;
  }
}

/* ========================================
   2026-08-25 21:21 adjustments
   - Force app cards to pure white
   - Rebalance mobile app-card size and spacing
   - Article navigation: newer on left / older on right
======================================== */
.app-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.news-article__nav-link--next { justify-self: start; }
.news-article__nav-link--prev { justify-self: end; }

@media (max-width: 560px) {
  .home-apps__list {
    width: 100%;
    max-width: none;

    /* 2枚で約80％。前バージョンの約9割程度のカードサイズ */
    grid-template-columns: repeat(2, 42%);

    /*
      左右に各5％、カード間に10％。
      左右だけが不自然に広がらず、
      カード間の余白を少し広めに取る。
    */
    column-gap: 6%;
    row-gap: 22px;

    justify-content: center;
    margin-inline: 0;
    padding-inline: 0;
  }

  .app-card {
    width: 100%;
    padding: 8px;
    border-radius: 13px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
  }
}



/* LEGACY NEWS ARCHIVE SUPPORT */
.news-article__body--legacy img.legacy-article-image { max-width: 100%; height: auto; margin: 14px auto; }
.news-article__body--legacy .legacy-store-badge { width: auto; height: 40px; max-width: 46%; object-fit: contain; vertical-align: middle; }
.news-article__body--legacy pre { white-space: pre-wrap; word-break: break-word; font: inherit; line-height: inherit; margin: 0 0 18px; }
.news-article__body--legacy center { margin: 18px 0; }
.news-article__body--legacy a { overflow-wrap: anywhere; }
@media (max-width: 767px) { .news-article__body--legacy .legacy-store-badge { height: 36px; } }


/* ========================================
   2026-08-26 NEWS BACKGROUND / HEADER UPDATE
   - News list & article background fixed to viewport
   - Main hero dark overlay restored more softly
   - Header made more transparent
   - Restrained cyber crest ornaments on text logo
======================================== */

body.news-page,
body.news-article-page {
  background-color: #061326;
}

body.news-page .subpage-main,
body.news-article-page .subpage-main {
  background:
    linear-gradient(rgba(3, 12, 25, 0.24), rgba(3, 12, 25, 0.56)),
    url("../img/top_main_bg.webp") center center / cover fixed no-repeat;
}

/* Disable the old oversized scrolling image layer only on news pages. */
body.news-page .subpage-main::before,
body.news-article-page .subpage-main::before {
  content: none;
  display: none;
}

/* Keep the cyber texture fixed as well, so only the content scrolls. */
body.news-page .subpage-main::after,
body.news-article-page .subpage-main::after {
  position: fixed;
  inset: 0;
}

/* Keep the logo ornaments compact on smaller screens. */
@media (max-width: 860px) {
  .site-header__logo-copy::before,
  .site-header__logo-copy::after {
    width: 11px;
    height: 11px;
  }

  .site-header__logo-copy::before { left: -18px; }
  .site-header__logo-copy::after { right: -18px; }
}

@media (max-width: 560px) {
  .site-header__logo-copy::before,
  .site-header__logo-copy::after {
    width: 9px;
    height: 9px;
    opacity: 0.72;
  }

  .site-header__logo-copy::before { left: -13px; }
  .site-header__logo-copy::after { right: -13px; }
}


/* ========================================
   2026-08-26 VISUAL / MOTION UPDATE
   - Carousel: stronger glow + move/settle emphasis
   - App cards: reveal by row
   - App section: static deep-ocean cyber background
   - Header logo: no side emblems; restrained lines above/below
======================================== */

/* --- HEADER TEXT LOGO: upper/lower cyber line ornaments only --- */
.site-header__logo-copy {
  position: relative;
  padding: 7px 2px 8px;
}

.site-header__logo-copy::before,
.site-header__logo-copy::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  border: 0;
  width: 78%;
  height: 5px;
  opacity: 0.78;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 4px rgba(75, 208, 255, 0.38));
  box-shadow: none;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* top: thin cyan line with a short broken/angled accent */
.site-header__logo-copy::before {
  top: -3px;
  background:
    linear-gradient(90deg,
      transparent 0 7%,
      rgba(84, 207, 255, 0.12) 7% 18%,
      rgba(103, 228, 255, 0.86) 18% 54%,
      rgba(77, 177, 248, 0.52) 54% 69%,
      transparent 69% 100%) center 0 / 100% 1px no-repeat,
    linear-gradient(135deg,
      transparent 0 46%,
      rgba(97, 225, 255, 0.78) 47% 53%,
      transparent 54% 100%) 12% 1px / 10px 5px no-repeat;
}

/* bottom: slightly shorter blue line, offset to avoid a framed look */
.site-header__logo-copy::after {
  bottom: -3px;
  width: 66%;
  background:
    linear-gradient(90deg,
      transparent 0 14%,
      rgba(84, 166, 244, 0.14) 14% 27%,
      rgba(82, 190, 255, 0.72) 27% 72%,
      rgba(115, 232, 255, 0.34) 72% 86%,
      transparent 86% 100%) center 4px / 100% 1px no-repeat,
    linear-gradient(45deg,
      transparent 0 46%,
      rgba(94, 213, 255, 0.68) 47% 53%,
      transparent 54% 100%) 86% 0 / 9px 5px no-repeat;
}

.site-header__logo:hover .site-header__logo-copy::before,
.site-header__logo:hover .site-header__logo-copy::after {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(75, 208, 255, 0.52));
  box-shadow: none;
}

/* --- APP SECTION: deep ocean + restrained cyber accents --- */
.home-apps {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% -4%, rgba(74, 207, 255, 0.28) 0%, rgba(38, 113, 184, 0.12) 31%, transparent 57%),
    radial-gradient(circle at 13% 34%, rgba(38, 126, 215, 0.18), transparent 28%),
    radial-gradient(circle at 87% 61%, rgba(38, 196, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #07192d 0%, #061425 38%, #030b17 100%);
}

.home-apps::before {
  z-index: 0;
  background:
    linear-gradient(111deg,
      transparent 0 31%,
      rgba(112, 225, 255, 0.020) 36%,
      rgba(86, 190, 255, 0.085) 43%,
      rgba(108, 225, 255, 0.024) 50%,
      transparent 57%),
    linear-gradient(rgba(119, 223, 255, 0.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 223, 255, 0.021) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), #000 20%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), #000 20%, #000 82%, transparent);
}

/* Sparse, static line/dot accents — intentionally not a dense circuit-board pattern. */
.home-apps::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.78;
  background:
    radial-gradient(circle at 12% 29%, rgba(119, 232, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 77% 18%, rgba(101, 201, 255, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 89% 72%, rgba(108, 230, 255, 0.50) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 83%, rgba(76, 173, 247, 0.46) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent 0 8%, rgba(102, 221, 255, 0.28) 8% 17%, transparent 17% 100%) 0 31% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 74%, rgba(77, 170, 247, 0.25) 74% 90%, transparent 90% 100%) 0 67% / 100% 1px no-repeat,
    linear-gradient(135deg, transparent 46%, rgba(103, 224, 255, 0.27) 47% 52%, transparent 53%) 8% 46% / 24px 24px no-repeat,
    linear-gradient(45deg, transparent 46%, rgba(83, 171, 247, 0.22) 47% 52%, transparent 53%) 91% 36% / 26px 26px no-repeat;
}

.home-apps .wrap {
  position: relative;
  z-index: 2;
}

/* row-by-row reveal: actual delays are calculated from the rendered grid columns in JS */
.has-js .home-apps__list .app-card {
  transform: translateY(20px) scale(0.982);
  transition:
    opacity 0.48s ease,
    transform 0.52s cubic-bezier(0.19, 0.76, 0.25, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (max-width: 860px) {
  .site-header__logo-copy {
    padding: 6px 1px 7px;
  }
  .site-header__logo-copy::before {
    top: -2px;
    width: 72%;
    height: 4px;
  }
  .site-header__logo-copy::after {
    bottom: -2px;
    width: 60%;
    height: 4px;
  }
}

@media (max-width: 560px) {
  .site-header__logo-copy {
    padding: 5px 0 6px;
  }
  .site-header__logo-copy::before,
  .site-header__logo-copy::after {
    opacity: 0.68;
  }
  .site-header__logo-copy::before {
    width: 66%;
  }
  .site-header__logo-copy::after {
    width: 54%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track,
  .hero-slide,
  .has-js .home-apps__list .app-card {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}


/* ========================================
   FINAL HEADER LOGO RESET
   2026-08-26
   - Text logo only
   - No emblem / cyber line decoration
======================================== */
.site-header__logo-copy {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.site-header__logo-copy::before,
.site-header__logo-copy::after,
.site-header__logo-main::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}


/* ========================================
   FINAL SUBPAGE FIXED BACKGROUND
   2026-08-26
   - News list / news article / contact
   - Viewport-fixed background, content only scrolls
   - Uses a fixed pseudo-element instead of background-attachment: fixed
     for better mobile browser compatibility.
======================================== */

body.news-page,
body.news-article-page,
body.contact-page {
  background: #061326;
}

body.news-page .subpage-main,
body.news-article-page .subpage-main,
body.contact-page .subpage-main {
  position: relative;
  background: transparent !important;
  isolation: isolate;
}

/* Fixed image layer */
body.news-page .subpage-main::before,
body.news-article-page .subpage-main::before,
body.contact-page .subpage-main::before {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  z-index: 0 !important;
  inset: 0 !important;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(3, 12, 25, 0.24), rgba(3, 12, 25, 0.56)),
    url("../img/top_main_bg.webp") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

/* Fixed cyber texture layer */
body.news-page .subpage-main::after,
body.news-article-page .subpage-main::after,
body.contact-page .subpage-main::after {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  z-index: 0 !important;
  inset: 0 !important;
  pointer-events: none;
  background:
    linear-gradient(rgba(107, 224, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 224, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(71, 209, 255, 0.16), transparent 25%);
  background-size: 52px 52px, 52px 52px, auto;
}

/* All actual subpage content stays above the two fixed layers */
body.news-page .subpage-main > .wrap,
body.news-article-page .subpage-main > .wrap,
body.contact-page .subpage-main > .wrap {
  position: relative;
  z-index: 1;
}

/* On narrow/mobile screens, keep the same fixed behavior.
   Slightly bias the crop upward so the focal area remains visible. */
@media (max-width: 767px) {
  body.news-page .subpage-main::before,
  body.news-article-page .subpage-main::before,
  body.contact-page .subpage-main::before {
    background-position: center 34% !important;
  }
}


/* ========================================
   CAROUSEL TOUCH / SWIPE
   2026-08-26
======================================== */
.hero-carousel__viewport {
  touch-action: pan-y;
}


/* ========================================
   FINAL NEWS ARTICLE NAV ALIGNMENT
   2026-08-26
   Always reserve left / center / right columns.
======================================== */
.news-article__nav {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
}

.news-article__nav-link--prev {
  grid-column: 1 !important;
  justify-self: start !important;
  text-align: left !important;
}

.news-article__nav-link--list {
  grid-column: 2 !important;
  justify-self: center !important;
  text-align: center !important;
}

.news-article__nav-link--next {
  grid-column: 3 !important;
  justify-self: end !important;
  text-align: right !important;
}

@media (max-width: 767px) {
  .news-article__nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 8px !important;
  }
}


/* ========================================
   FINAL TOP H1 RESET
   Keep the existing logo appearance after semantic H1 conversion.
======================================== */
.home .site-header__logo-main {
  margin: 0;
}
