/*
Theme Name: RIALL
Theme URI: https://www.rosella.co.jp
Author: Rosella Inc.
Description: Corporate website theme for RIALL Inc.
Version: 1.3.0
Text Domain: riall
*/

:root {
  --blue: #00a0e9;
  --blue-dark: #0077ad;
  --blue-navy: #06324a;
  --green: #9dd300;
  --green-dark: #7fa800;
  --green-text: #6b8f00;
  --ink: #111820;
  --ink-light: #2c3947;
  --muted: #465463;
  --line: #d6e6f2;
  --card-border: #bfddf2;
  --pale-bg: #f4f9fd;
  --pale-blue: #eef7fc;
  --max: 1160px;
  --radius: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: color 150ms ease, opacity 150ms ease; }
img { display: block; max-width: 100%; height: auto; }
main { min-width: 0; }
button, input, select, textarea { font: inherit; }
.entry-content, .article-body { overflow-wrap: anywhere; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(0, 160, 233, 0.34);
  outline-offset: 3px;
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #eef4f9;
  position: relative;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  width: min(1280px, calc(100% - 40px));
  margin: auto;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-logo {
  width: 44px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -6px;
}
.brand-mark span {
  color: var(--green);
  font-size: 29px;
  margin-left: 2px;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #111820;
}
.brand-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #556270;
  margin-top: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 14px;
}
.site-nav a {
  position: relative;
  padding: 27px 0;
  white-space: nowrap;
  color: var(--ink);
}
.site-nav a:hover {
  color: var(--blue);
}
.site-nav a[aria-current="page"] {
  color: var(--blue);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
.mobile-contact-link { display: none; }

.contact-nav {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
  min-height: 56px;
  gap: 11px;
  padding: 0 24px 0 44px;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 0 8px;
  background: var(--green);
  color: #1a2900;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition: transform 150ms var(--ease-out), box-shadow 160ms ease, filter 160ms ease;
}
.contact-nav::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 0 76%);
}
.contact-nav:hover {
  filter: brightness(1.025);
  box-shadow: 0 10px 26px rgba(106, 145, 0, 0.22);
}
.contact-nav:active { transform: scale(0.97); }
.contact-nav-icon {
  display: grid;
  width: 26px;
  height: 34px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  box-shadow: none;
}
.contact-nav-icon svg { width: 23px; height: 23px; stroke-width: 2.1; }

.mobile-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(0, 105, 202, 0.18);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(0, 105, 202, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms var(--ease-out), box-shadow 160ms ease, filter 160ms ease;
}
.mobile-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms var(--ease-out), top 180ms var(--ease-out), opacity 120ms ease, width 180ms var(--ease-out);
}
.mobile-toggle span:nth-child(1) { top: 16px; }
.mobile-toggle span:nth-child(2) { top: 22px; width: 12px; }
.mobile-toggle span:nth-child(3) { top: 28px; }
.mobile-toggle:active { transform: scale(0.96); }
.mobile-toggle:focus-visible { outline: 3px solid rgba(0, 160, 233, 0.28); outline-offset: 3px; }
.mobile-toggle[aria-expanded="true"] { box-shadow: 0 5px 14px rgba(0, 105, 202, 0.16); }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-4px); }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .mobile-toggle:hover { filter: brightness(1.06); box-shadow: 0 9px 22px rgba(0, 105, 202, 0.26); }
}

/* ==========================================================================
   Top Page - Hero
   ========================================================================== */
.hero-front {
  min-height: 480px;
  position: relative;
  overflow: visible;
  background: #ffffff;
}
.hero-front::before {
  content: none;
}
.hero-front .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  min-height: 480px;
}
.hero-copy {
  padding-left: 18px;
  z-index: 2;
}
.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 3.7vw, 52px);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.hero-copy h1 em {
  color: var(--green);
  font-style: normal;
}
.hero-copy h1 .brand-i {
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
}
.hero-copy p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
  color: var(--ink-light);
}
.hero-visual {
  position: absolute;
  right: max(20px, calc((100vw - 1280px) / 2));
  top: 6px;
  width: 60%;
  height: calc(100% - 12px);
  z-index: 1;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: right center;
}
.hero-visual::after {
  content: none;
}
.hero-brand-word {
  position: absolute;
  z-index: 4;
  left: 43%;
  top: 31%;
  display: flex;
  align-items: baseline;
  font: 800 clamp(88px, 10vw, 144px)/0.9 Arial, Helvetica, sans-serif;
  letter-spacing: -0.075em;
  filter: drop-shadow(0 5px 16px rgba(0, 61, 112, 0.12));
  pointer-events: none;
}
.hero-brand-word span { color: var(--blue); }
.hero-brand-word em { color: var(--green); font-style: normal; }
.hero-brand-word strong { color: #243444; font: inherit; }
.hero-dots-asset {
  position: absolute;
  z-index: 4;
  left: 57%;
  top: 54px;
  width: 170px;
  height: auto;
  opacity: 0.72;
  pointer-events: none;
}
.slashes {
  position: absolute;
  right: 5%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 28px;
  transform: skewX(-24deg);
}
.slashes i {
  width: 42px;
  height: 120px;
  border-radius: 9px;
  background: var(--blue);
}
.slashes i:last-child {
  height: 95px;
  background: var(--green);
  opacity: 0.9;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 56px 0;
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}
.section-title .divider {
  width: 38px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.section-title .ja {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Top Page - Strengths (私たちの強み)
   ========================================================================== */
.section-strengths {
  background: linear-gradient(180deg, #f7fbfe 0%, #edf6fc 100%);
  padding-top: 20px;
  padding-bottom: 50px;
}
.strengths-heading-wrap {
  margin-bottom: 34px;
}
.strengths-title {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.strengths-line-dot {
  position: relative;
  width: 46px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.strengths-line-dot::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -2.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.strength-card {
  padding: 0 26px;
  border-right: 1px solid #d4dfe7;
  text-align: left;
}
.strength-card:first-child { padding-left: 0; }
.strength-card:last-child { border-right: none; padding-right: 0; }

.strength-icon-ring {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  transition: transform 180ms ease;
}
.strength-green .strength-icon-ring {
  border-color: var(--green);
  color: var(--green);
}
.strength-icon-ring svg {
  width: 38px;
  height: 38px;
}
.strength-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 7px;
  color: var(--ink);
}
.strength-bar {
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: var(--green);
}
.strength-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-light);
  text-align: left;
}

/* ==========================================================================
   Top Page - Service Grid
   ========================================================================== */
.section-service-top {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7fbfe 0%, #edf6fc 100%);
  padding: 60px 0;
}
.section-service-top > .container { position: relative; z-index: 1; }
.service-grid-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-row {
  display: grid;
  gap: 16px;
}
.service-row-4 {
  grid-template-columns: repeat(4, 1fr);
}
.service-row-3 {
  grid-template-columns: repeat(3, 1fr);
  width: 75%;
  margin: 0 auto;
}
.service-mini-card {
  min-height: 144px;
  padding: 16px 18px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(0, 60, 120, 0.04);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.service-mini-card .card-head {
  position: relative;
  display: grid;
  min-height: 69px;
  place-items: center;
  align-items: flex-start;
  margin-bottom: 7px;
}
.service-mini-card .num {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--green);
}
.service-mini-card .mini-icon {
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 66px;
}
.service-mini-card .mini-icon svg {
  width: 32px;
  height: 32px;
}
.service-mini-card .mini-icon img {
  width: 68px;
  height: 64px;
  object-fit: contain;
}
.service-mini-card h3 {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--ink);
}
.service-mini-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   RIALL 光 Banner
   ========================================================================== */
.fiber-banner {
  margin-top: 28px;
  min-height: 118px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: #ffffff url("assets/images/hikari-banner.png") right center / auto 100% no-repeat;
  box-shadow: 0 4px 18px rgba(0, 110, 200, 0.06);
}
.fiber-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0.42) 60%, rgba(255, 255, 255, 0) 78%);
}
#riall-hikari { scroll-margin-top: 96px; }
.fiber-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 36px;
  min-height: 118px;
}
.fiber-brand {
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}
.fiber-logo-riall {
  color: var(--blue-dark);
  font-weight: 700;
}
.fiber-logo-hikari {
  color: var(--green);
  font-weight: 800;
  font-size: 46px;
  font-family: "Noto Sans JP", sans-serif;
}
.fiber-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.fiber-copy strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.45;
}
.fiber-audience::after { content: " "; }
.fiber-copy-lead {
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: 800;
  line-height: 1.55;
}
.fiber-copy small {
  font-size: 12.5px;
  color: var(--ink-light);
  font-weight: 600;
  line-height: 1.55;
}
.fiber-action {
  margin-left: auto;
  margin-right: clamp(118px, 10vw, 150px);
  z-index: 3;
  flex: 0 0 auto;
}
/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), filter 140ms ease, box-shadow 140ms ease;
}
.button:active {
  transform: scale(0.97);
}
.button-message {
  background: var(--blue-dark);
  color: #ffffff;
  border-radius: 20px;
  padding: 10px 20px;
}
.button-message:hover {
  background: var(--blue-dark);
}
.button-fiber {
  background: var(--blue-dark);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 13.5px;
  white-space: nowrap;
}
.button-fiber:hover {
  background: var(--blue-dark);
}
.btn-arrow {
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   Top Page - Message Section
   ========================================================================== */
.section-message {
  background: linear-gradient(110deg, #f2f8fc 0%, #e6f3fb 100%);
  padding: 0;
  overflow: hidden;
}
.message-inner {
  display: grid;
  grid-template-columns: 30% 70%;
  align-items: stretch;
  min-height: 260px;
}
.message-copy {
  padding: 38px 24px 34px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.message-copy .section-title {
  margin-bottom: 14px;
}
.message-text {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--ink);
}
.message-visual-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.message-visual-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* ==========================================================================
   News & Contact Section
   ========================================================================== */
.news-contact {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 48px;
}
.news-contact.contact-only {
  display: flex;
  justify-content: center;
  padding: 12px 0 24px;
}
.news-contact.contact-only .contact-card {
  width: min(700px, 100%);
}
.news-section {
  display: flex;
  flex-direction: column;
}
.news-section .section-title {
  margin-bottom: 18px;
  color: var(--blue);
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  display: grid;
  grid-template-columns: 90px 76px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #dce8f0;
  font-size: 13px;
}
.news-list time {
  color: var(--ink-light);
  font-family: Arial, Helvetica, sans-serif;
}
.news-tag {
  display: inline-block;
  text-align: center;
  padding: 2px 6px;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.news-link {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.news-link:hover {
  color: var(--blue);
}
.news-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.news-more:hover {
  color: var(--blue-dark);
}

/* Shared contact CTA */
.contact-card {
  position: relative;
  background: linear-gradient(110deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #ffffff;
  padding: 30px 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  clip-path: none;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 100, 200, 0.18);
  transform: skewX(-6deg);
}
.contact-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -72px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.contact-card-inner {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 0 auto;
  text-align: center;
  transform: skewX(6deg);
  transform-origin: center;
}
.contact-card-lead {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.contact-card-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0;
}
.phone-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.phone-icon svg {
  width: 25px;
  height: 25px;
  fill: #ffffff;
}
.phone-number {
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.contact-card-hours {
  margin: 4px 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.9;
}
.button-contact-form {
  width: 90%;
  margin: 0 auto;
  background: var(--green);
  color: #192700;
  font-size: 14px;
  font-weight: 800;
  border-radius: 14px;
  padding: 13px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.button-contact-form:hover {
  filter: brightness(1.05);
}
.button-contact-form .mail-icon svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Service Page (事業案内)
   ========================================================================== */
.page-hero-service {
  min-height: 400px;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #dcebf6;
  overflow: hidden;
}
.page-hero-service::before {
  content: none;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  min-height: 400px;
}
.page-hero-copy h1 {
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.24;
}
.title-rule {
  width: 50px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 22px;
  border-radius: 2px;
}
.page-hero-copy p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--ink-light);
}
.page-hero-service .page-visual {
  position: absolute;
  right: 0;
  top: 6px;
  width: 58%;
  height: 388px;
}
.page-hero-service .page-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.section-service-detailed {
  background: #ffffff;
  padding: 56px 0 24px;
}
.service-detailed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.service-primary-card {
  position: relative;
  min-height: 410px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background-color: #ffffff;
  background-image: url("assets/images/service-primary-bg.png");
  background-position: right center;
  background-size: 64% auto;
  background-repeat: no-repeat;
  box-shadow: 0 5px 20px rgba(0, 70, 130, 0.05);
}
.service-primary-body {
  position: relative;
  z-index: 1;
  min-height: 410px;
  padding: 38px 44px 26px;
}
.service-primary-body h3 {
  max-width: 45%;
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 26px;
  line-height: 1.45;
}
.service-primary-lead {
  max-width: 45%;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.service-primary-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 46%;
  margin: 0 0 14px;
  border-top: 1px solid #b8d9ef;
}
.service-primary-icons > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 102px;
  color: var(--blue-dark);
}
.service-primary-icons > span + span { border-left: 1px solid #c7dce9; }
.service-primary-icons img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.service-primary-icons strong {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
}
.service-primary-body > .card-desc {
  max-width: 59%;
  padding: 7px 10px 7px 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}
.service-detail-card {
  display: grid;
  grid-template-columns: 66% 34%;
  height: 200px;
  min-height: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 70, 130, 0.03);
}
.service-detail-card .card-thumb {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  order: 2;
}
.service-detail-card .card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-detail-card .card-body {
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 1;
}
.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.card-icon-ring {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
}
.card-icon-ring svg {
  width: 24px;
  height: 24px;
}
.card-icon-ring img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}
.card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-light);
}

/* Alternating Blue / Green Styling for Detailed Cards */
.theme-blue {
  color: var(--blue-dark);
}
.theme-blue .card-title {
  color: var(--blue-dark);
}
.theme-blue .card-icon-ring {
  color: var(--blue);
}

.theme-green {
  color: var(--green-dark);
}
.theme-green .card-title {
  color: var(--blue-dark);
}
.theme-green .card-icon-ring {
  color: var(--green);
}

.service-detail-deco {
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.service-detail-deco img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  padding: 22px 0 20px;
  background: #ffffff;
  border-top: 1px solid #eef4f9;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  margin-right: auto;
}
.footer-address {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}
.footer-links a:hover {
  color: var(--blue);
}
.footer-remote {
  padding: 4px 9px;
  border: 1px solid #c9d3db;
  border-radius: 3px;
  color: #59636c;
  font-size: 12px;
  font-weight: 600;
}
.footer-legal {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--blue); }
.copyright {
  font-size: 12px;
  color: var(--muted);
}

/* Back to top / scroll progress */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}
.back-to-top-track,
.back-to-top-value {
  fill: none;
  stroke-width: 3;
}
.back-to-top-track { stroke: rgba(0, 105, 202, 0.16); }
.back-to-top-value {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.back-to-top-core {
  position: absolute;
  inset: 6px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  box-shadow: 0 9px 24px rgba(0, 89, 166, 0.26);
  transition: transform 140ms var(--ease-out), box-shadow 160ms ease, filter 160ms ease;
}
.back-to-top-core svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top-core small {
  margin-top: -2px;
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: 0.1em;
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(157, 211, 0, 0.55);
  outline-offset: 3px;
}
.back-to-top:active .back-to-top-core { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover .back-to-top-core {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 89, 166, 0.32);
  }
}

/* ==========================================================================
   Subpages / Contact Page
   ========================================================================== */
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font: 800 14px/1 Arial, sans-serif;
  letter-spacing: 0.2em;
}
.subpage-heading {
  padding: 60px 0 45px;
  background: linear-gradient(120deg, #f5fbff, #e8f6ff);
}
.subpage-heading h1 { margin: 0 0 10px; font-size: 42px; font-weight: 800; }
.subpage-heading p { margin: 0; color: var(--muted); }

.contact-hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-bottom: 1px solid #d7e9f7;
}
.contact-hero::before {
  content: none;
}
.contact-hero > .container {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  min-height: 400px;
}
.contact-hero h1 {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.24;
}
.contact-hero p {
  max-width: 470px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.contact-hero .page-visual {
  position: absolute;
  right: 0;
  top: 6px;
  width: 58%;
  height: 388px;
}
.contact-hero .page-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.contact-aside { position: sticky; top: 28px; padding: 8px 0; }
.contact-aside h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.45; }
.contact-aside p { color: var(--muted); font-size: 13px; }
.contact-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 22px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 103, 162, 0.2);
  transform: skewX(-6deg);
}
.contact-phone::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.contact-phone-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.contact-phone-icon svg { width: 29px; height: 29px; fill: #ffffff; }
.contact-phone-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transform: skewX(6deg);
}
.contact-phone-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
}
.contact-phone small, .contact-phone span { display: block; }
.contact-phone strong {
  display: block;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.contact-form-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(0, 70, 120, 0.06);
}
.contact-privacy-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.contact-privacy-note a,
.consent a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.riall-form-grid { display: block; }
.riall-form-grid > p:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.riall-form-grid > p:first-child > br { display: none; }
.field-wide { grid-column: 1 / -1; }
.riall-form-grid .consent { margin-top: 22px; }
.riall-form-grid .submit-wrap { margin-top: 14px; }
.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}
.field em {
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 3px;
  background: #eaf6d0;
  color: #638d00;
  font-size: 11px;
  font-style: normal;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbdbe7;
  border-radius: 6px;
  background: #fbfdff;
  font: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.14);
}
.consent { font-size: 13px; text-align: center; }
.consent p,
.submit-wrap p { margin: 0; }
.consent .wpcf7-list-item { margin: 0; }
.consent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}
.submit-wrap { text-align: center; }
.submit-wrap p {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.submit-wrap input {
  min-width: 260px;
  padding: 14px 28px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}
.submit-wrap .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: calc(50% + 146px);
  margin: 0;
  transform: translateY(-50%);
}
.submit-wrap input:active { transform: scale(0.97); }

.tag {
  border: 1px solid var(--blue);
  border-radius: 3px;
  color: var(--blue);
  text-align: center;
  line-height: 1.6;
  font-size: 12px;
  font-weight: 700;
}
.news-archive article {
  position: relative;
  display: grid;
  grid-template-columns: 120px 90px 1fr 24px;
  align-items: center;
  gap: 18px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.news-archive-section { padding-top: 48px; }
.news-archive-shell { max-width: 900px; }
.news-archive article {
  grid-template-columns: 110px 82px minmax(0, 1fr) 20px;
  gap: 14px;
  padding: 19px 4px;
}
.news-archive h2 { margin: 0; font-size: 16px; }
.news-archive h2 a:hover { color: var(--blue-dark); }
.news-archive .arrow { color: var(--blue); font-size: 26px; }
.article-shell { max-width: 900px; }
.news-article { padding: 6px 0; }
.article-meta { display: flex; align-items: center; gap: 18px; }
.news-article h1 {
  margin: 18px 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 34px;
  line-height: 1.45;
}
.article-body {
  min-height: 160px;
  margin-bottom: 36px;
  color: var(--ink-light);
  font-size: 15px;
  line-height: 2;
}
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }
.news-back-button {
  min-height: 46px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 105, 202, 0.16);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.nav-links .page-numbers {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 10px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--blue-dark);
  font-weight: 800;
}
.nav-links .page-numbers.current {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #ffffff;
}

/* Privacy policy */
.privacy-page-hero p { margin: 18px 0 0; color: var(--muted); }
.privacy-policy-section { padding-top: 64px; }
.privacy-policy-content { max-width: 900px; }
.privacy-policy-content > p:first-child { margin-top: 0; }
.privacy-policy-content h2 {
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.5;
}
.privacy-policy-content p { color: var(--ink-light); line-height: 2; }
.privacy-policy-content address {
  margin-top: 18px;
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  background: var(--pale-bg);
  font-style: normal;
  line-height: 1.9;
}
.privacy-policy-content address a { color: var(--blue-dark); font-weight: 700; }

/* 404 */
.error-page {
  display: grid;
  min-height: calc(100vh - 360px);
  place-items: center;
  padding: 90px 0 110px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0 48%, var(--pale-blue) 100%);
  text-align: center;
}
.error-page-inner { position: relative; max-width: 760px; }
.error-code {
  display: block;
  margin-bottom: -20px;
  color: rgba(0, 160, 233, 0.09);
  font: 800 clamp(120px, 19vw, 220px)/0.82 Arial, sans-serif;
  letter-spacing: -0.06em;
}
.error-page .eyebrow { margin-bottom: 16px; }
.error-page h1 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 46px); line-height: 1.35; }
.error-page p { margin: 0 auto; color: var(--muted); }
.error-page-actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 34px; }
.error-home-button { min-width: 190px; background: linear-gradient(90deg, var(--blue-dark), var(--blue)); color: #ffffff; }
.error-contact-link { color: var(--blue-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 560px) {
  .privacy-policy-section { padding-top: 44px; }
  .privacy-policy-content h2 { margin-top: 38px; font-size: 19px; }
  .privacy-policy-content address { padding: 18px; }
  .error-page { padding: 72px 0 88px; }
  .error-page-actions { flex-direction: column; gap: 18px; }
}

/* Generic WordPress pages and fallback listings */
.generic-page-hero {
  display: flex;
  min-height: 300px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0 58%, rgba(229, 244, 253, 0.9) 58%),
    linear-gradient(135deg, #ffffff, #e9f6fd);
}
.generic-page-hero-inner { position: relative; }
.generic-page-hero-inner::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 50%;
  width: 44px;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue) 0 64%, var(--green) 64%);
  transform: translateY(-50%) skewX(-22deg);
  opacity: 0.92;
}
.generic-page-hero h1 {
  max-width: calc(100% - 120px);
  margin: 0 0 14px;
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1.25;
  letter-spacing: 0.05em;
}
.generic-content,
.generic-listing-grid { max-width: 900px; }
.generic-content { color: var(--ink-light); font-size: 15px; line-height: 2; }
.generic-content > :first-child { margin-top: 0; }
.generic-content > :last-child { margin-bottom: 0; }
.generic-content h2,
.generic-content h3 { color: var(--ink); line-height: 1.45; }
.generic-content h2 { margin: 2em 0 0.8em; font-size: 28px; }
.generic-content h3 { margin: 1.8em 0 0.7em; font-size: 22px; }
.generic-content a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 0.18em; }
.generic-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  background: var(--pale-bg);
}
.generic-content blockquote > :first-child { margin-top: 0; }
.generic-content blockquote > :last-child { margin-bottom: 0; }
.generic-listing-grid { display: grid; gap: 18px; }
.generic-listing-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 70, 120, 0.05);
}
.generic-listing-card time { color: var(--muted); font: 700 12px/1 Arial, sans-serif; }
.generic-listing-card h2 { margin: 10px 0; font-size: 22px; line-height: 1.45; }
.generic-listing-card p { color: var(--muted); }
.generic-listing-link { color: var(--blue-dark); font-weight: 800; }

/* ==========================================================================
   Company and Access Pages
   ========================================================================== */
.company-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(118deg, #ffffff 0 58%, #edf8ff 58% 100%);
  border-bottom: 1px solid #dcebf6;
}
.company-page-hero::before,
.company-page-hero::after {
  content: "";
  position: absolute;
  border-radius: 7px;
  transform: skewX(-24deg);
}
.company-page-hero::before {
  right: 13%;
  top: -30px;
  width: 38px;
  height: 220px;
  background: var(--blue);
}
.company-page-hero::after {
  right: 7%;
  bottom: -42px;
  width: 30px;
  height: 170px;
  background: var(--green);
}
.company-page-hero-inner { position: relative; z-index: 2; }
.company-page-hero h1,
.company-page-hero-title {
  margin: 0 0 12px;
  font-size: clamp(38px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
}
.company-page-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-light);
  font-size: 14px;
  font-weight: 600;
}
.company-page-hero-image {
  min-height: 400px;
  background: #ffffff;
}
.company-page-hero-image::before {
  content: none;
}
.company-page-hero-image::after { display: none; }
.company-page-hero-image .company-page-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}
.company-page-hero-visual {
  position: absolute;
  right: 0;
  top: 6px;
  width: 58%;
  height: 388px;
}
.company-page-hero-visual img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.company-anchor-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.company-anchor-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.company-anchor-inner a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 66px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.company-anchor-inner a:first-child { border-left: 1px solid var(--line); }
.company-anchor-inner a span {
  color: var(--blue);
  font: 800 11px/1 Arial, sans-serif;
}
.company-section { scroll-margin-top: 74px; padding: 72px 0; }
.company-section-heading { margin-bottom: 28px; }
.company-section-heading > span,
.access-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: 0.18em;
}
.company-section-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  font-size: 30px;
  line-height: 1.3;
}
.company-section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue) 0 70%, var(--green) 70%);
}
.company-origin { background: linear-gradient(180deg, #f7fbfe, #edf6fc); }
.company-origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 76px;
}
.company-lead {
  margin: 0 0 24px;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.7;
}
.company-copy p {
  margin: 0 0 16px;
  color: var(--ink-light);
  font-size: 13.5px;
  line-height: 2;
}
.philosophy-mark {
  position: relative;
  min-height: 360px;
  padding: 42px 38px 36px 124px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-dark), var(--blue));
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 89, 166, 0.18);
}
.philosophy-mark > strong {
  position: absolute;
  left: 14px;
  top: -36px;
  color: rgba(255, 255, 255, 0.18);
  font: italic 900 250px/1 Arial, sans-serif;
}
.philosophy-mark ul { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; }
.philosophy-mark li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font: 700 13px/1.4 Arial, "Noto Sans JP", sans-serif;
}
.philosophy-mark li span { color: #c8ee59; font-size: 10px; letter-spacing: 0.1em; }
.company-message { background: #ffffff; }
.company-message-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 70px;
}
.company-message-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 12px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.company-message-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.company-message-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 45, 82, 0.55));
}
.company-message-image span {
  position: absolute;
  left: 30px;
  bottom: 28px;
  z-index: 2;
  color: #ffffff;
  font: 800 18px/1 Arial, sans-serif;
  letter-spacing: 0.16em;
}
.company-signature {
  margin: 24px 0 0;
  text-align: right;
  font-size: 19px;
  font-weight: 800;
}
.company-signature span { margin-right: 12px; font-size: 13px; color: var(--muted); }
.company-profile { background: linear-gradient(180deg, #f7fbfe, #edf6fc); }
.company-profile-inner { max-width: 960px; }
.company-data {
  overflow: hidden;
  margin: 0;
  border-top: 2px solid var(--blue);
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 70, 120, 0.06);
}
.company-data > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.company-data dt,
.company-data dd { margin: 0; padding: 18px 22px; }
.company-data dt { background: #edf7fd; color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.company-data dd { color: var(--ink-light); font-size: 13px; }
.company-data ul { margin: 0; padding-left: 1.25em; }
.company-data a { color: var(--blue-dark); font-weight: 800; }
.access-section { background: linear-gradient(180deg, #ffffff, #f4f9fd); }
.access-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
}
.access-info-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  padding: 44px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(0, 70, 120, 0.09);
}
.access-info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 46px;
  width: 4px;
  height: 72px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--blue) 0 68%, var(--green) 68%);
}
.access-info-card h2 { margin: 0 0 14px; font-size: 27px; }
.access-info-card address { color: var(--ink-light); font-size: 14px; font-style: normal; line-height: 1.9; }
.access-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.access-contact-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, var(--pale-blue));
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 72, 110, 0.07);
}
.access-contact-item:first-child {
  border-color: rgba(0, 160, 233, 0.3);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #ffffff;
}
.access-contact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 160, 233, 0.1);
  color: var(--blue-dark);
}
.access-contact-icon svg { width: 23px; height: 23px; }
.access-contact-icon-phone {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.access-contact-icon-phone svg { fill: currentColor; }
.access-contact-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.access-contact-copy small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.access-contact-item:first-child .access-contact-copy small,
.access-contact-item:first-child .access-contact-label { color: rgba(255, 255, 255, 0.86); }
.access-contact-label {
  color: var(--blue);
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: 0.16em;
}
.access-contact-item strong {
  font: 800 18px/1.25 Arial, sans-serif;
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.access-map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 10px 10px 10px 17px;
  border: 1px solid #d6e6ee;
  border-radius: 11px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 160ms ease, background-color 160ms ease, transform 120ms ease;
}
.access-map-link-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #ffffff;
  font: 700 15px/1 Arial, sans-serif;
}
.access-map-link:active { transform: scale(0.985); }
.access-map {
  overflow: hidden;
  border-radius: 14px;
  background: #eaf3f8;
  box-shadow: 0 12px 36px rgba(0, 70, 120, 0.09);
}
.access-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  filter: grayscale(1) contrast(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .company-anchor-inner a:hover { color: var(--blue-dark); background: #f4faff; }
  .access-map-link:hover { border-color: #afcfdf; background: #f7fbfd; }
}

@media (hover: hover) and (pointer: fine) {
  .service-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 60, 120, 0.08);
  }
}

/* ==========================================================================
   Responsive / Mobile Styles
   ========================================================================== */
@media (max-width: 960px) {
  body.menu-is-open { overflow: hidden; }
  .site-header { height: 68px; z-index: 100; }
  .site-header::after {
    content: "";
    position: fixed;
    z-index: 101;
    inset: 0;
    background: rgba(1, 20, 38, 0.48);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .site-header.menu-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms var(--ease-out), visibility 0s;
  }
  .contact-nav { display: none; }
  .mobile-toggle { display: block; z-index: 103; }
  .site-nav {
    counter-reset: menu;
    display: flex;
    position: fixed;
    z-index: 102;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 410px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 92px 34px 36px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(155deg, var(--blue-navy) 0%, var(--blue-dark) 60%, var(--blue) 100%);
    color: #ffffff;
    box-shadow: -24px 0 60px rgba(1, 36, 66, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 260ms var(--ease-drawer), opacity 180ms var(--ease-out), visibility 0s linear 260ms;
  }
  .site-nav::before {
    content: "RiALL";
    position: absolute;
    right: -12px;
    top: 88px;
    color: rgba(255, 255, 255, 0.075);
    font: 800 72px/1 Arial, sans-serif;
    letter-spacing: -0.08em;
    transform: rotate(90deg) translateX(100%);
    transform-origin: top right;
  }
  .site-nav::after {
    content: "";
    position: absolute;
    right: 36px;
    bottom: 28px;
    width: 16px;
    height: 78px;
    border-radius: 5px;
    background: var(--green);
    transform: skewX(-22deg);
    box-shadow: -28px 12px 0 rgba(255, 255, 255, 0.18);
  }
  .site-header.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 260ms var(--ease-drawer), opacity 180ms var(--ease-out), visibility 0s;
  }
  .site-nav a {
    counter-increment: menu;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    color: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 19px;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateX(14px);
    transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
  }
  .site-nav a::before {
    content: "0" counter(menu);
    color: #b8ecff;
    font: 700 11px/1 Arial, sans-serif;
    letter-spacing: 0.12em;
  }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: #ffffff; }
  .site-header.menu-open .site-nav a { opacity: 1; transform: translateX(0); }
  .site-header.menu-open .site-nav a:nth-child(2) { transition-delay: 35ms; }
  .site-header.menu-open .site-nav a:nth-child(3) { transition-delay: 70ms; }
  .site-header.menu-open .site-nav a:nth-child(4) { transition-delay: 105ms; }
  .site-header.menu-open .site-nav a:nth-child(5) { transition-delay: 140ms; }
  .site-header.menu-open .site-nav a:nth-child(6) { transition-delay: 175ms; }
  .site-header.menu-open .site-nav a:nth-child(7) { transition-delay: 210ms; }
  .site-nav .mobile-contact-link {
    display: grid;
    margin-top: 18px;
    background: var(--green);
    color: #142000;
    text-align: center;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 26px rgba(0, 20, 35, 0.2);
  }
  .site-nav .mobile-contact-link::before {
    content: "✉";
    color: #4a6900;
    font: 800 20px/1 Arial, sans-serif;
  }
  .site-nav .mobile-contact-link[aria-current="page"] { color: #142000; }

  .hero-front, .hero-front .hero-inner { min-height: 500px; }
  .hero-front::before,
  .page-hero-service::before,
  .contact-hero::before,
  .company-page-hero-image::before {
    right: 2%;
    top: 90px;
    width: 112px;
    height: 20px;
  }
  .hero-front .hero-inner { display: block; }
  .hero-copy { position: relative; z-index: 3; padding: 48px 0 0; }
  .hero-copy h1 { font-size: 39px; }
  .hero-visual { top: 218px; right: 0; width: 74%; height: 282px; opacity: 0.96; }
  .hero-visual::after { top: 17%; left: -3%; font-size: 84px; }
  .hero-brand-word { display: none; }
  .hero-dots-asset { display: none; }
  .slashes { display: none; }
  .page-hero-inner { display: block; padding-top: 38px; }
  .page-hero-service { min-height: 560px; }
  .page-hero-copy h1 { font-size: 40px; }
  .page-hero-service .page-visual { top: 240px; width: 100%; height: 320px; }
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }
  .strength-card:nth-child(2) { border-right: none; }
  .strength-card:nth-child(3) { border-right: 1px solid #d4dfe7; padding-left: 0; }

  .service-row-4 { grid-template-columns: repeat(2, 1fr); }
  .service-row-3 { grid-template-columns: repeat(2, 1fr); width: 100%; }

  .fiber-inner,
  .fiber-banner.no-btn .fiber-inner {
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px 130px;
    text-align: center;
  }
  .fiber-banner {
    background-position: right bottom;
    background-size: auto 100%;
  }
  .fiber-action { margin-left: 0; margin-right: 0; }

  .message-inner { grid-template-columns: 1fr; }
  .message-copy { padding: 30px 0 20px; }

  .news-contact { grid-template-columns: 1fr; }
  .services-detailed-grid { grid-template-columns: 1fr; }
  .service-primary-body { padding: 30px 26px; }
  .service-primary-body h3 { font-size: 22px; }
  .service-detail-deco { display: none; }
  .contact-hero > .container { display: block; padding-top: 38px; }
  .contact-hero { min-height: 560px; }
  .contact-hero h1 { font-size: 40px; }
  .contact-hero .page-visual { top: 250px; width: 100%; height: 310px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-aside { position: static; }
  .contact-form-card { padding: 28px; }
  .news-archive article { grid-template-columns: 100px 80px 1fr 18px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-links { width: 100%; flex-wrap: wrap; gap: 18px; }
  .company-origin-grid,
  .company-message-grid { grid-template-columns: 1fr; gap: 42px; }
  .company-message-image { min-height: 380px; }
  .company-message-image img { min-height: 380px; }
  .company-message-copy { order: -1; }
  .company-page-hero-image { display: block; min-height: 560px; }
  .company-page-hero-image .company-page-hero-inner {
    display: block;
    min-height: 0;
    padding-top: 38px;
  }
  .company-page-hero-visual { top: 250px; width: 100%; height: 310px; }
  .access-layout { grid-template-columns: 1fr; min-height: 0; }
  .access-info-card { gap: 26px; padding: 38px 34px; }
  .access-map { border-radius: 12px; }
  .access-map iframe { min-height: 430px; }
}

/* Tablet and wide-phone layouts keep meaningful left/right compositions. */
@media (min-width: 660px) and (max-width: 960px) {
  .hero-front,
  .hero-front .hero-inner {
    min-height: 430px;
  }
  .hero-front .hero-inner {
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
  }
  .hero-copy {
    max-width: 360px;
    padding: 0;
  }
  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4.4vw, 40px);
  }
  .hero-copy p {
    font-size: 13px;
    line-height: 1.85;
  }
  .hero-visual {
    top: 20px;
    right: 0;
    width: 59%;
    height: 390px;
  }

  .page-hero-service,
  .contact-hero,
  .company-page-hero-image {
    min-height: 400px;
  }
  .page-hero-inner,
  .contact-hero > .container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 400px;
    padding-top: 0;
    align-items: center;
  }
  .page-hero-copy h1,
  .contact-hero h1 {
    font-size: clamp(36px, 4.6vw, 42px);
  }
  .page-hero-copy p,
  .contact-hero p {
    max-width: 350px;
    font-size: 13.5px;
    line-height: 1.75;
  }
  .page-hero-copy p br { display: none; }
  .page-hero-service .page-visual,
  .contact-hero .page-visual,
  .company-page-hero-visual {
    top: 20px;
    right: 0;
    width: 56%;
    height: 360px;
  }
  .company-page-hero-image .company-page-hero-inner {
    display: flex;
    min-height: 400px;
    padding: 0 58% 0 0;
    justify-content: center;
  }

  .fiber-inner,
  .fiber-banner.no-btn .fiber-inner {
    flex-direction: row;
    gap: 18px;
    padding: 22px 28px;
    text-align: left;
  }
  .fiber-brand { font-size: 31px; }
  .fiber-logo-hikari { font-size: 38px; }
  .fiber-copy strong { font-size: 15px; }
  .fiber-copy-lead { font-size: 12px; }
  .fiber-copy small { display: none; }
  .button-fiber {
    padding-inline: 18px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .fiber-action { margin-left: auto; margin-right: clamp(88px, 12vw, 112px); }
  .message-inner { grid-template-columns: 36% 64%; }
  .message-copy { padding: 32px 22px 30px 0; }
  .news-contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }
  .company-origin-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 32px;
  }
  .philosophy-mark {
    min-height: 350px;
    padding: 36px 24px 30px 88px;
  }
  .philosophy-mark > strong {
    left: -8px;
    font-size: 220px;
  }
  .company-message-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
  }
  .company-message-copy { order: initial; }
  .company-message-image,
  .company-message-image img { min-height: 420px; }
  .access-layout {
    grid-template-columns: minmax(290px, 0.86fr) minmax(0, 1.14fr);
    gap: 20px;
  }
  .access-info-card {
    gap: 26px;
    padding: 30px 24px;
  }
  .access-contact-grid { grid-template-columns: 1fr; }
  .access-map iframe { min-height: 500px; }
}

@media (min-width: 600px) and (max-width: 659px) {
  .hero-front,
  .hero-front .hero-inner {
    min-height: 400px;
  }
  .hero-front .hero-inner {
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
  }
  .hero-copy {
    max-width: 300px;
    padding: 0;
  }
  .hero-copy h1 {
    margin-bottom: 14px;
    font-size: 30px;
    line-height: 1.3;
  }
  .hero-copy p {
    font-size: 13px;
    line-height: 1.7;
  }
  .hero-visual {
    top: 18px;
    right: 0;
    width: 55%;
    height: 364px;
  }

  .page-hero-service,
  .contact-hero,
  .company-page-hero-image {
    min-height: 380px;
  }
  .page-hero-inner,
  .contact-hero > .container {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 380px;
    padding-top: 0;
    align-items: center;
  }
  .page-hero-copy h1,
  .contact-hero h1 {
    font-size: 32px;
  }
  .page-hero-copy p,
  .contact-hero p,
  .company-page-hero p {
    font-size: 13px;
    line-height: 1.65;
  }
  .page-hero-copy p br { display: none; }
  .page-hero-service .page-visual,
  .contact-hero .page-visual,
  .company-page-hero-visual {
    top: 18px;
    right: 0;
    width: 54%;
    height: 344px;
  }
  .company-page-hero-image .company-page-hero-inner {
    display: flex;
    min-height: 380px;
    padding: 0 56% 0 0;
    justify-content: center;
  }
}

/* Short landscape screens use the same split idea with a tighter vertical rhythm. */
@media (min-width: 561px) and (max-width: 960px) and (orientation: landscape) and (max-height: 500px) {
  .hero-front,
  .hero-front .hero-inner {
    min-height: 320px;
  }
  .hero-front .hero-inner {
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: center;
  }
  .hero-copy {
    max-width: 330px;
    padding: 0;
  }
  .hero-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.28;
  }
  .hero-copy p {
    font-size: 13px;
    line-height: 1.65;
  }
  .hero-visual {
    top: 12px;
    right: 0;
    width: 58%;
    height: 296px;
  }

  .page-hero-service,
  .contact-hero,
  .company-page-hero-image {
    min-height: 320px;
  }
  .page-hero-inner,
  .contact-hero > .container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 320px;
    padding-top: 0;
    align-items: center;
  }
  .page-hero-copy h1,
  .contact-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4.2vw, 34px);
  }
  .title-rule {
    margin-bottom: 16px;
    width: 42px;
  }
  .page-hero-copy p,
  .contact-hero p,
  .company-page-hero p {
    font-size: 13px;
    line-height: 1.6;
  }
  .page-hero-copy p br { display: none; }
  .page-hero-service .page-visual,
  .contact-hero .page-visual,
  .company-page-hero-visual {
    top: 12px;
    right: 0;
    width: 56%;
    height: 296px;
  }
  .company-page-hero-image .company-page-hero-inner {
    display: flex;
    min-height: 320px;
    padding: 0 58% 0 0;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .hero-front, .hero-front .hero-inner { min-height: 590px; }
  .hero-front::before { right: -7%; }
  .page-hero-service::before,
  .contact-hero::before,
  .company-page-hero-image::before { right: -14%; }
  .hero-copy h1 { font-size: 32px; line-height: 1.38; }
  .hero-copy p { font-size: 13px; }
  .hero-visual { top: 350px; right: 0; width: 100%; height: 240px; }
  .page-hero-copy p { font-size: 13px; }
  .page-hero-service .page-visual { right: 0; width: 100%; }
  .strengths-grid { grid-template-columns: 1fr; gap: 24px; }
  .strength-card { border-right: none !important; padding: 0 0 20px !important; border-bottom: 1px solid #e2ecf2; }
  .strength-card:last-child { border-bottom: none; }
  .service-row-4, .service-row-3 { grid-template-columns: 1fr; }
  .service-detail-card { grid-template-columns: 1fr; height: auto; }
  .service-detail-card .card-thumb { height: 180px; }
  .service-primary-card {
    min-height: 610px;
    background-position: 68% bottom;
    background-size: auto 57%;
  }
  .service-primary-body {
    min-height: 610px;
    padding: 28px 22px 240px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 54%, rgba(255, 255, 255, 0.88) 64%, rgba(255, 255, 255, 0) 78%);
  }
  .service-primary-body h3,
  .service-primary-lead,
  .service-primary-icons,
  .service-primary-body > .card-desc { max-width: none; width: 100%; }
  .service-primary-icons > span { flex-direction: column; gap: 4px; min-height: 96px; }
  .contact-card {
    padding: 24px 18px;
    border-radius: 14px;
    clip-path: none;
  }
  .phone-number { font-size: 27px; }
  .page-hero-service,
  .contact-hero,
  .company-page-hero-image { min-height: 520px; }
  .contact-hero p { font-size: 13px; }
  .page-hero-service .page-visual,
  .contact-hero .page-visual { top: 230px; right: 0; width: 100%; height: 290px; }
  .riall-form-grid > p:first-child { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .contact-form-card { padding: 22px 16px; }
  .submit-wrap input { min-width: 0; width: 100%; }
  .submit-wrap .wpcf7-spinner { right: 14px; left: auto; }
  .contact-aside h2 { font-size: 27px; }
  .contact-phone {
    padding: 18px 20px;
    border-radius: 14px;
  }
  .contact-phone-main { gap: 10px; }
  .contact-phone-icon { width: 44px; height: 44px; border-radius: 13px; }
  .contact-phone-icon svg { width: 25px; height: 25px; }
  .contact-phone strong { font-size: clamp(23px, 7.5vw, 28px); }
  .news-archive article {
    grid-template-columns: auto minmax(0, 1fr) 20px;
    gap: 8px 12px;
    padding: 20px 4px;
  }
  .news-archive time { grid-column: 1; grid-row: 1; }
  .news-archive .tag {
    grid-column: 2;
    grid-row: 1;
    min-width: 70px;
    justify-self: start;
    padding-inline: 8px;
  }
  .news-archive h2 {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 15px;
    line-height: 1.55;
  }
  .news-archive h2 a { display: flex; min-height: 44px; align-items: center; }
  .news-archive .arrow { grid-column: 3; grid-row: 1 / 3; }
  .subpage-heading { padding: 46px 0 38px; }
  .subpage-heading h1 { font-size: 36px; }
  .news-article h1 { font-size: 26px; }
  .company-page-hero { min-height: 520px; }
  .company-page-hero::before { right: 2%; opacity: 0.18; }
  .company-page-hero::after { display: none; }
  .company-page-hero h1,
  .company-page-hero-title { font-size: 38px; }
  .company-page-hero-image::before { right: -14%; top: 90px; width: 112px; height: 20px; opacity: 1; }
  .company-page-hero-image .company-page-hero-visual { top: 220px; right: 0; width: 100%; height: 300px; }
  .news-page-hero { min-height: 470px; }
  .news-page-hero .company-page-hero-visual { top: 170px; height: 300px; }
  .company-anchor-inner a { min-height: 58px; gap: 5px; font-size: 12.5px; }
  .company-anchor-inner a span { display: none; }
  .company-section { padding: 52px 0; }
  .company-section-heading h2 { font-size: 26px; }
  .company-lead { font-size: 20px; }
  .philosophy-mark { min-height: 330px; padding: 34px 24px 28px 90px; }
  .philosophy-mark > strong { left: 0; font-size: 210px; }
  .company-message-image,
  .company-message-image img { min-height: 300px; }
  .company-data {
    display: grid;
    gap: 10px;
    overflow: visible;
    border-top: 0;
    background: transparent;
    box-shadow: none;
  }
  .company-data > div {
    grid-template-columns: minmax(96px, 30%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(0, 72, 110, 0.045);
  }
  .company-data dt,
  .company-data dd {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    padding: 14px 13px;
    overflow-wrap: anywhere;
  }
  .company-data dt {
    border-right: 1px solid var(--line);
    background: linear-gradient(135deg, var(--pale-blue), #f5fbfe);
  }
  .company-data dd {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
  }
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
  .access-info-card { padding: 26px 20px; }
  .access-contact-grid { grid-template-columns: 1fr; }
  .access-map iframe { height: 380px; min-height: 380px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .site-footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
  .footer-brand { margin: 0; }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
  .footer-links a {
    display: flex;
    min-height: 42px;
    align-items: center;
    border-bottom: 1px solid #edf3f7;
  }
  .footer-legal { align-items: flex-start; }
  .footer-remote {
    grid-column: 1 / -1;
    min-height: 48px !important;
    margin-top: 10px;
    padding: 0 12px 0 14px;
    justify-content: space-between;
    border: 1px solid #cbdde8 !important;
    border-radius: 8px;
    background: linear-gradient(105deg, #f8fcfe 0%, #eef7fc 100%);
    color: var(--blue-dark);
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 5px 16px rgba(0, 74, 130, 0.05);
  }
  .footer-remote::before {
    content: "REMOTE";
    color: var(--blue);
    font: 800 9px/1 Arial, sans-serif;
    letter-spacing: 0.14em;
  }
  .footer-remote::after {
    content: "↗";
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-dark);
    color: #ffffff;
    font: 800 12px/1 Arial, sans-serif;
  }
  .copyright { line-height: 1.6; }
  .generic-page-hero { min-height: 240px; }
  .generic-page-hero h1 {
    max-width: calc(100% - 68px);
    font-size: clamp(32px, 10vw, 40px);
  }
  .generic-page-hero-inner::after {
    right: 10px;
    width: 30px;
    height: 112px;
  }
  .generic-content h2 { font-size: 24px; }
  .generic-content h3 { font-size: 20px; }
  .generic-content blockquote { padding: 18px; }
  .generic-listing-card { padding: 22px 20px; }
  .generic-listing-card h2 { font-size: 19px; }
}

/* The fiber promotion stays compact and image-led on narrow landscape screens. */
@media (min-width: 561px) and (max-width: 659px) {
  .fiber-banner {
    min-height: 220px;
    background-position: right center;
    background-size: auto 100%;
  }
  .fiber-banner::before {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 48%, rgba(255, 255, 255, 0.78) 65%, rgba(255, 255, 255, 0) 86%);
  }
  .fiber-inner,
  .fiber-banner.no-btn .fiber-inner {
    min-height: 220px;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 42% 20px 22px;
    text-align: left;
  }
  .fiber-brand { font-size: 29px; }
  .fiber-logo-hikari { font-size: 36px; }
  .fiber-copy { gap: 2px; }
  .fiber-copy strong {
    font-size: 15px;
    line-height: 1.45;
  }
  .fiber-copy-lead { font-size: 12px; }
  .fiber-copy small { display: none; }
  .fiber-action {
    margin: 6px 0 0;
  }
  .button-fiber {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 12.5px;
    white-space: nowrap;
  }
}

/* Mobile turns the artwork into a controlled lower panel so every line stays legible. */
@media (max-width: 560px) {
  .fiber-banner {
    min-height: 0;
    margin-top: 24px;
    border-color: rgba(0, 105, 203, 0.55);
    border-radius: 14px;
    background-color: var(--blue-dark);
    background-position: center bottom;
    background-size: auto 43%;
    box-shadow: 0 12px 30px rgba(0, 67, 132, 0.16);
  }
  .fiber-banner::before {
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-dark) 58%, rgba(0, 119, 173, 0.9) 70%, rgba(0, 160, 233, 0.22) 100%);
  }
  .fiber-inner,
  .fiber-banner.no-btn .fiber-inner {
    min-height: 376px;
    align-items: stretch;
    gap: 11px;
    padding: 23px 20px 126px;
    text-align: left;
  }
  .fiber-brand {
    align-self: flex-start;
    font-size: 34px;
  }
  .fiber-logo-riall { color: #ffffff; }
  .fiber-logo-hikari {
    color: #b3e332;
    font-size: 42px;
  }
  .fiber-copy { gap: 3px; }
  .fiber-copy strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.48;
    letter-spacing: 0.01em;
  }
  .fiber-audience,
  .fiber-offer { display: block; }
  .fiber-audience {
    margin-bottom: 1px;
    color: #d9f4ff;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .fiber-audience::after { content: ""; }
  .fiber-copy-lead {
    color: #d9f4ff;
    font-size: 12.5px;
    line-height: 1.55;
  }
  .fiber-copy small {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.55;
  }
  .fiber-action {
    width: 100%;
    margin: 3px 0 0;
  }
  .button-fiber {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 8px;
    background: var(--green);
    color: #173100;
    font-size: 13px;
    box-shadow: 0 7px 18px rgba(0, 30, 70, 0.2);
  }
  .button-fiber:hover { background: #b7e73b; }
  .button-fiber .btn-arrow {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(23, 49, 0, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav,
  .site-nav a,
  .mobile-toggle,
  .mobile-toggle span,
  .button,
  .submit-wrap input {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .back-to-top {
    transform: none;
    transition: opacity 180ms var(--ease-out);
  }
  .back-to-top-core { transition: filter 160ms ease; }
  .site-nav { transform: none; }
}

/* ==========================================================================
   RiALL Hikari (Dedicated Page Styles)
   ========================================================================== */
.hikari-page {
  --hikari-blue: #00a0e9;
  --hikari-blue-dark: #0077ad;
  --hikari-blue-navy: #06324a;
  --hikari-green: #93b720;
  --hikari-green-dark: #79a600;
  --hikari-green-lime: #9bc61c;
  --hikari-bg-pale: #f7fafe;
  --hikari-bg-card: #ffffff;
  --hikari-border: #dce7f1;
  --hikari-border-dark: #cbdbe9;
  --hikari-text-dark: #111820;
  --hikari-text-sub: #2c3947;
  --hikari-text-muted: #526272;
  color: var(--hikari-text-dark);
  background: #f8fafd;
}

.hikari-page .brand-blue { color: var(--hikari-blue); }
.hikari-page .brand-green { color: var(--hikari-green); }
.hikari-page .container { width: min(1320px, calc(100% - 48px)); }
.hikari-page .hikari-hero .container { width: min(var(--max), calc(100% - 40px)); }

/* --- Hero Section --- */
.hikari-hero {
  position: relative;
  min-height: 400px;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid #e2edf6;
}

.hikari-hero::before,
.hikari-hero::after {
  display: none;
}

.hikari-hero::before {
  top: -10%;
  bottom: -10%;
  left: 44.2%;
  width: 20px;
  background: linear-gradient(180deg, rgba(121, 196, 240, 0.48), rgba(0, 75, 184, 0.78));
  transform: skewX(-12deg);
}

.hikari-hero::after {
  top: -12%;
  right: 2.5%;
  width: 46px;
  height: 124%;
  background: linear-gradient(90deg, #ffffff 0 14%, var(--hikari-blue) 14% 38%, #ffffff 38% 53%, #95c11f 53% 79%, #ffffff 79% 100%);
  transform: skewX(-9deg);
}

.hikari-hero-inner {
  position: relative;
  min-height: 400px;
}

.hikari-hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 42%;
  min-height: 400px;
}

.hikari-hero-lead {
  font-size: 22px;
  font-weight: 700;
  color: var(--hikari-text-dark);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.hikari-hero-title {
  font-size: clamp(34px, 3.45vw, 50px);
  font-weight: 800;
  color: var(--hikari-blue);
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 6px 0 16px;
  white-space: nowrap;
}

.hikari-hero-desc {
  font-size: 15.5px;
  line-height: 1.8;
  color: #222222;
  font-weight: 500;
  margin: 0 0 28px;
}

.hikari-hero-cta-group {
  display: flex;
  gap: 14px;
  align-items: stretch;
  width: 660px;
  max-width: calc(100vw - 280px);
}

.hikari-cta-phone-card {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  background: linear-gradient(135deg, #006d9f 0%, var(--hikari-blue) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px 10px 10px 22px;
  padding: 14px 18px;
  box-shadow: 0 10px 24px rgba(0, 91, 143, 0.24);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
  flex: 1;
}
.hikari-cta-phone-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -54px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.cta-phone-top {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.95;
  display: block;
  margin-bottom: 0;
  text-align: center;
  white-space: nowrap;
}

.cta-phone-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #ffffff;
  text-decoration: none;
}

.cta-phone-icon {
  display: grid;
  width: 30px;
  height: 38px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
}

.cta-phone-icon svg {
  width: 23px;
  height: 23px;
}

.cta-phone-number {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  font-family: Arial, Helvetica, sans-serif;
}

.cta-phone-hours {
  font-size: 11.5px;
  opacity: 0.85;
  display: block;
  margin-top: 0;
  text-align: center;
}

.hikari-cta-mail-card {
  position: relative;
  min-height: 108px;
  background: #ffffff;
  border: 2px solid var(--hikari-green);
  border-radius: 10px 10px 10px 22px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(75, 116, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
  text-decoration: none;
  flex: 1;
  transition: transform 150ms var(--ease-out), box-shadow 160ms ease;
}

.hikari-cta-mail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(114, 190, 41, 0.18);
}
.hikari-cta-mail-card:active,
.bottom-mail-box:active,
.hikari-download-btn:active { transform: scale(0.98); }

.cta-mail-top {
  font-size: 12.5px;
  font-weight: 600;
  color: #444444;
  display: block;
  margin-bottom: 0;
  text-align: center;
  white-space: nowrap;
}

.cta-mail-main {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  color: var(--hikari-blue-dark);
  font-size: 16px;
  font-weight: 800;
}

.cta-mail-text {
  white-space: nowrap;
  text-align: center;
}

.cta-mail-icon {
  display: grid;
  width: 30px;
  height: 40px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--hikari-green);
  flex-shrink: 0;
}

.cta-mail-icon svg {
  width: 24px;
  height: 24px;
}

.cta-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--hikari-green);
  color: #ffffff;
  font: 800 19px/1 Arial, sans-serif;
  margin-left: auto;
}

.hikari-hero-visual {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: calc((100% - 100vw) / 2);
  bottom: auto;
  left: auto;
  width: 58vw;
  height: 388px;
}

.hikari-hero-visual-frame {
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: hidden;
  background: transparent;
}

.hikari-hero-visual-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right center;
  transform: translateX(1%);
}

/* --- Page Sub Navigation --- */
.hikari-subnav {
  background: #ffffff;
  border-top: 1px solid #e2ecf5;
  border-bottom: 1px solid #e2ecf5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 10;
}

.hikari-subnav-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subnav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 8px;
  border-right: 1px solid #eef4f9;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subnav-item:last-child {
  border-right: none;
}

.subnav-item:hover {
  background: #f4f9fd;
}

.subnav-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subnav-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.subnav-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--hikari-text-dark);
  white-space: nowrap;
}

.subnav-item:hover .subnav-text {
  color: var(--hikari-blue);
}

/* --- Common Section Styles --- */
.hikari-section {
  padding: 36px 0;
  scroll-margin-top: 96px;
}

.hikari-section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--hikari-text-dark);
  letter-spacing: 0.02em;
}

.hikari-section-title.centered {
  text-align: center;
  margin-bottom: 40px;
}

.hikari-block-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--hikari-blue);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

/* --- Section: RiALL 光 が選ばれる理由 --- */
.hikari-reasons-section {
  background: linear-gradient(180deg, #fafcfe 0%, #f7fafe 100%);
  border-bottom: 1px solid #e8f0f8;
}

.hikari-reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.hikari-reason-card {
  background: transparent;
  border: 0;
  border-right: 1px solid #dbe8f2;
  border-radius: 0;
  padding: 12px 22px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  transition: none;
}

.hikari-reason-card:last-child {
  border-right: 0;
}

.reason-icon-wrap {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.reason-icon-wrap img {
  max-width: 124px;
  max-height: 88px;
  width: auto;
  object-fit: contain;
}

.reason-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--hikari-blue);
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.4;
}

.reason-card-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--hikari-text-sub);
  margin: 0;
  text-align: center;
}

/* --- Section: 通信速度 --- */
.hikari-speed-section {
  scroll-margin-top: 130px;
  background: #f7fafd;
  padding-top: 12px;
  padding-bottom: 10px;
}

.hikari-speed-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  padding: 18px 28px;
  background: #ffffff;
  border: 1px solid #e3edf5;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 60, 140, 0.05);
}

.hikari-speed-lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--hikari-text-dark);
  margin: 0 0 18px;
}

.hikari-footnote {
  font-size: 12px;
  color: var(--hikari-text-muted);
  line-height: 1.65;
  margin: 0;
}

.hikari-speed-table-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 60, 140, 0.06);
  border: 1px solid var(--hikari-border);
}

.hikari-speed-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.hikari-speed-table th {
  background: var(--hikari-blue-navy);
  color: #ffffff;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  border: 1px solid #005d88;
}

.hikari-speed-table td {
  padding: 13px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid #e2edf6;
  color: #223040;
}

.hikari-speed-table .col-plan { width: 30%; }
.hikari-speed-table .col-speed { width: 28%; text-align: center; }
.hikari-speed-table .col-features { width: 42%; }

.hikari-speed-table tr.row-highlight td {
  background: #f4f8da;
}

.hikari-speed-table tr:nth-child(even):not(.row-highlight) td {
  background: #fbfdff;
}

.plan-name-blue {
  color: var(--hikari-blue);
  font-weight: 800;
}

.plan-name-default {
  color: var(--hikari-text-dark);
  font-weight: 800;
}

.cell-speed {
  text-align: center;
  white-space: nowrap;
}

.speed-prefix {
  font-size: 13px;
  font-weight: 600;
  color: var(--hikari-text-sub);
  margin-right: 4px;
}

.speed-val {
  font-size: 18px;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--hikari-text-dark);
}

.row-highlight .speed-val {
  font-size: 21px;
  color: var(--hikari-blue);
}

/* --- Section: アクセスビジネスタイプのオプションサービス --- */
.hikari-options-section {
  padding-top: 10px;
  padding-bottom: 18px;
  scroll-margin-top: 130px;
}

.hikari-options-card {
  background: #ffffff;
  border: 1px solid var(--hikari-border-dark);
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 4px 16px rgba(0, 60, 140, 0.04);
}

.hikari-options-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.hikari-options-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--hikari-blue);
  margin: 0;
}

.hikari-options-note {
  font-size: 12.5px;
  color: var(--hikari-text-muted);
  font-weight: 600;
}

.hikari-options-content {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 26px;
  align-items: center;
}

.hikari-matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d2e4f3;
}

.hikari-matrix-table th {
  background: var(--hikari-blue-navy);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid #005d88;
  white-space: nowrap;
}

.hikari-matrix-table .col-opt-name { width: 34%; text-align: left; padding-left: 10px; }
.hikari-matrix-table .col-region { width: 8%; text-align: center; }

.hikari-matrix-table td {
  padding: 8px 8px;
  font-size: 12.5px;
  border: 1px solid #e2edf6;
  color: #223040;
}

.cell-opt-name {
  font-weight: 600;
  padding-left: 10px !important;
}

.cell-mark {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.status-ok { color: var(--hikari-text-dark); }
.status-cond { color: var(--hikari-text-dark); }
.status-no { color: var(--hikari-text-muted); }

.hikari-options-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #445566;
  font-weight: 500;
}

.hikari-options-disclaimer {
  margin: 7px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--hikari-text-muted);
}

.hikari-options-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hikari-options-visual-col img {
  max-width: 100%;
  max-height: 205px;
  height: auto;
  object-fit: contain;
}

/* --- Section: 3 Feature Cards --- */
.hikari-three-cards-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.hikari-three-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hikari-feature-card {
  background: #ffffff;
  border: 1px solid var(--hikari-border);
  border-radius: 12px;
  padding: 22px 18px 18px;
  box-shadow: 0 4px 16px rgba(0, 60, 140, 0.04);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 130px;
}

.card-headline-blue {
  font-size: 19px;
  font-weight: 800;
  color: var(--hikari-blue);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.4;
}

.card-headline-green {
  font-size: 19px;
  font-weight: 800;
  color: var(--hikari-green);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.4;
}

.card-sub-lead {
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  color: var(--hikari-text-dark);
  margin: 0 0 20px;
  line-height: 1.55;
}

.card-centered-title {
  margin: 0 0 5px;
  color: var(--hikari-blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.card-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.card-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-item-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-item-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--hikari-blue);
  margin: 0 0 4px;
  line-height: 1.4;
}

.card-item-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--hikari-text-sub);
  margin: 0;
}

.card-detail-text {
  margin: 0;
  color: var(--hikari-text-sub);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.card-bottom-footnote {
  font-size: 11px;
  color: var(--hikari-text-muted);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 12px;
}

/* Switch Card Diagram */
.hikari-switch-diagram {
  --switch-visual-size: clamp(78px, 7.4vw, 98px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 20px;
}

.switch-badge-wrap {
  flex-shrink: 0;
}

.switch-badge {
  width: var(--switch-visual-size);
  height: var(--switch-visual-size);
  border-radius: 50%;
  background: var(--hikari-green);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(114, 190, 41, 0.28);
}

.switch-badge strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.switch-badge small {
  font-size: 9.5px;
  line-height: 1.25;
  opacity: 0.95;
  margin-top: 2px;
}

.switch-arrow-wrap {
  width: 44px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-arrow-svg {
  width: 100%;
  height: 100%;
}

.switch-bldg-wrap {
  width: var(--switch-visual-size);
  height: var(--switch-visual-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-bldg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Backbone Card Diagram */
.hikari-backbone-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0 16px;
}

.backbone-step-box {
  width: 100%;
  max-width: 250px;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}

.step-ntt {
  background: var(--hikari-blue-dark);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 119, 173, 0.2);
}

.step-riall {
  background: #ffffff;
  border: 1.5px solid var(--hikari-blue);
  color: var(--hikari-text-dark);
}

.riall-brand-text {
  font-size: 15px;
  font-weight: 800;
}

.step-client {
  background: #ffffff;
  border: 1.5px solid var(--hikari-border-dark);
  color: var(--hikari-text-dark);
}

.client-box-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.client-bldg-icon {
  width: 20px;
  height: auto;
}

.backbone-step-arrow {
  color: var(--hikari-blue);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backbone-step-arrow svg {
  width: 100%;
  height: 100%;
}

/* --- Section: Comparison --- */
.hikari-compare-section {
  padding-top: 18px;
  padding-bottom: 18px;
  scroll-margin-top: 130px;
}

.hikari-compare-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: center;
}

.compare-card {
  min-width: 0;
  border-radius: 12px;
  padding: 22px 24px 24px;
}

.compare-before {
  background: #ffffff;
  border: 1.5px solid var(--hikari-border-dark);
  box-shadow: 0 4px 16px rgba(0, 60, 140, 0.04);
}

.compare-after {
  background: #fbfff1;
  border: 2px solid var(--hikari-green);
  box-shadow: 0 6px 24px rgba(114, 190, 41, 0.12);
}

.compare-card-header {
  text-align: center;
  margin-bottom: 16px;
}

.compare-main-tag {
  font-size: 23px;
  font-weight: 800;
  color: var(--hikari-blue);
  margin: 0 0 4px;
}

.compare-after .compare-main-tag {
  color: var(--hikari-text-dark);
}

.compare-sub-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hikari-text-dark);
  margin: 0;
}

.compare-after .compare-sub-title {
  color: #4d8212;
}

.compare-icons-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}

.compare-icons-bar::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 42px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: #cbd8e3;
}

.compare-before .compare-icons-bar::before {
  content: none;
}

.compare-icon-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.icon-circle {
  width: min(84px, 100%);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.before-circle {
  border: 0;
  box-shadow: none;
}

.after-circle {
  border: 0;
  box-shadow: none;
}

.icon-circle img {
  width: 100%;
  max-width: 84px;
  height: 88px;
  object-fit: contain;
}

.icon-caption {
  font-size: 12px;
  font-weight: 700;
  color: var(--hikari-text-sub);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.compare-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hikari-text-dark);
}

.check-mark {
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.check-blue { color: var(--hikari-blue); }
.check-green { color: var(--hikari-green); }

.compare-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.connector-arrow {
  width: 42px;
  height: 92px;
  background: var(--hikari-blue);
  clip-path: polygon(0 0, 38% 0, 100% 50%, 38% 100%, 0 100%, 62% 50%);
  filter: drop-shadow(0 4px 8px rgba(0, 119, 173, 0.16));
}

/* --- Section: 開通までの流れ --- */
.hikari-flow-section {
  padding-top: 18px;
  padding-bottom: 18px;
  scroll-margin-top: 130px;
}

.hikari-flow-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.flow-header-desc {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hikari-text-muted);
}

.hikari-flow-steps-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.hikari-documents {
  display: grid;
  grid-template-columns: minmax(160px, 0.2fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hikari-border);
  color: var(--hikari-text-muted);
}

.hikari-documents h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.hikari-documents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hikari-documents-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 3px 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.7;
}

.hikari-document-label {
  min-width: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hikari-documents-list a:hover {
  color: var(--hikari-blue-dark);
}

.hikari-documents-list a:focus-visible {
  outline: 2px solid var(--hikari-blue-dark);
  outline-offset: 4px;
  border-radius: 2px;
}

.hikari-document-format {
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 9px;
  font-size: 10px;
  line-height: 1.6;
}

.hikari-documents-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hikari-documents {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 599px) {
  .hikari-documents-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hikari-documents-list a {
    min-height: 44px;
  }
}

.flow-step-card {
  background: #ffffff;
  border: 1px solid var(--hikari-border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 4px 14px rgba(0, 60, 140, 0.04);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  align-items: center;
  text-align: left;
  min-height: 158px;
}

.step-card-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hikari-blue-dark);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--hikari-text-dark);
  margin: 0;
  line-height: 1.3;
}

.step-icon-wrap {
  grid-column: 1;
  grid-row: 2;
  width: 72px;
  height: 72px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.step-icon-wrap img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.flow-step-support .step-title {
  white-space: nowrap;
}

.step-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hikari-text-sub);
  margin: 0;
  text-align: left;
}

.step-sub-note {
  font-size: 11px;
  color: var(--hikari-text-muted);
  display: block;
  margin-top: 3px;
}

.flow-arrow-divider {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.flow-arrow-divider::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--hikari-blue);
  border-right: 3px solid var(--hikari-blue);
  transform: rotate(45deg);
}

/* --- Bottom CTA Section --- */
.hikari-bottom-cta-section {
  padding: 30px 0;
  background: linear-gradient(100deg, var(--hikari-blue-dark) 0%, var(--hikari-blue) 38%, #70ae22 76%, #99bd1c 100%);
}

.bottom-cta-banner {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: none;
}

.bottom-cta-lead {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.02em;
}

.bottom-cta-actions {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.bottom-phone-box {
  background: #ffffff;
  min-height: 108px;
  border: 1px solid rgba(0, 119, 173, 0.12);
  border-radius: 10px 10px 10px 22px;
  padding: 13px 18px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 60, 100, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 330px;
}

.bottom-box-label {
  font-size: 12px;
  font-weight: 700;
  color: #333333;
  display: block;
  margin-bottom: 0;
  white-space: nowrap;
  text-align: center;
}

.bottom-phone-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 800;
  color: var(--hikari-blue);
  letter-spacing: 0.03em;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.1;
}

.bottom-phone-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.bottom-hours-label {
  font-size: 11.5px;
  color: #555555;
  display: block;
  margin-top: 0;
  text-align: center;
}

.bottom-mail-box {
  background: #ffffff;
  min-height: 108px;
  border: 1px solid rgba(121, 166, 0, 0.24);
  border-radius: 10px 10px 10px 22px;
  padding: 13px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(55, 92, 0, 0.12);
  min-width: 360px;
  transition: transform 150ms var(--ease-out), box-shadow 160ms ease;
}

.bottom-mail-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.bottom-mail-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 6px;
  color: var(--hikari-blue-dark);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.bottom-mail-text { text-align: center; }

.bottom-mail-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.bottom-mail-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--hikari-green);
  color: #ffffff;
  font: 800 18px/1 Arial, sans-serif;
  margin-left: auto;
}

/* --- Downloads Section --- */
.hikari-downloads-section {
  padding: 24px 0;
}

.hikari-downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}

.hikari-download-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hikari-download-btn:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.hikari-download-btn.btn-blue {
  background: var(--hikari-blue-dark);
  box-shadow: 0 4px 14px rgba(0, 119, 173, 0.25);
}

.hikari-download-btn.btn-green {
  background: #018f1e;
  box-shadow: 0 4px 14px rgba(0, 153, 68, 0.25);
}

.btn-doc-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.btn-doc-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.btn-doc-text {
  letter-spacing: 0.02em;
}

.btn-doc-arrow {
  position: absolute;
  right: 24px;
  font-size: 20px;
  font-weight: 800;
}

/* Mobile contact CTAs: shown by theme.js after the opening content leaves view. */
.hikari-mobile-sticky-cta,
.site-mobile-sticky-cta { display: none; }

@media (max-width: 768px), (max-width: 960px) and (orientation: landscape) and (max-height: 500px) {
  .hikari-mobile-sticky-cta {
    position: fixed;
    z-index: 44;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    min-height: 64px;
    align-items: center;
    gap: 11px;
    padding: 9px 13px 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 14px;
    background: linear-gradient(105deg, #005d88 0%, var(--hikari-blue-dark) 58%, var(--hikari-blue) 100%);
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 54, 112, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-drawer), visibility 0s linear 240ms;
  }

  .site-mobile-sticky-cta {
    position: fixed;
    z-index: 44;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    min-height: 62px;
    align-items: center;
    gap: 11px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 12px 12px 12px 20px;
    background: linear-gradient(105deg, var(--blue-dark), var(--blue));
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 54, 112, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-drawer), visibility 0s linear 240ms;
  }
  .site-mobile-sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-drawer), visibility 0s;
  }
  .site-mobile-sticky-cta.is-visible:active { transform: scale(0.985); }
  .site-mobile-sticky-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
  }
  .site-mobile-sticky-icon svg { width: 21px; height: 21px; }
  .site-mobile-sticky-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
  }
  .site-mobile-sticky-copy small {
    color: #dff5ff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
  .site-mobile-sticky-copy strong { font-size: 14px; font-weight: 800; }
  .site-mobile-sticky-arrow {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #173100;
    font: 800 19px/1 Arial, sans-serif;
  }
  .hikari-mobile-sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-drawer), visibility 0s;
  }
  .hikari-mobile-sticky-cta.is-visible:active {
    transform: scale(0.985);
  }
  .hikari-mobile-sticky-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #ffffff;
  }
  .hikari-mobile-sticky-icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
  }
  .hikari-mobile-sticky-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
  }
  .hikari-mobile-sticky-copy small {
    color: #c8ee59;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }
  .hikari-mobile-sticky-copy strong {
    word-break: keep-all;
    font-size: 13.5px;
    font-weight: 800;
  }
  .hikari-mobile-sticky-arrow {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--hikari-green);
    color: #173100;
    font: 800 19px/1 Arial, sans-serif;
  }
  .has-mobile-sticky-cta .back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 769px) and (max-width: 960px) and (orientation: landscape) and (max-height: 500px) {
  .hikari-mobile-sticky-cta {
    left: auto;
    width: min(330px, calc(100% - 24px));
    min-height: 56px;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    padding-block: 7px;
  }
  .site-mobile-sticky-cta {
    left: auto;
    width: min(320px, calc(100% - 24px));
    min-height: 54px;
    padding-block: 7px;
  }
  .hikari-mobile-sticky-icon {
    width: 34px;
    height: 34px;
  }
  .hikari-mobile-sticky-icon img {
    width: 24px;
    height: 24px;
  }
  .hikari-mobile-sticky-copy small { display: none; }
  .hikari-mobile-sticky-copy strong { font-size: 12.5px; }
  .has-mobile-sticky-cta .back-to-top {
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hikari-mobile-sticky-cta,
  .site-mobile-sticky-cta {
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints for RiALL Hikari
   ========================================================================== */
@media (max-width: 1100px) {
  .compare-card { padding-inline: 18px; }
  .compare-icons-bar { gap: 5px; }
  .icon-circle,
  .icon-circle img { height: 74px; }
  .hikari-flow-steps-wrap {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    grid-template-rows: auto 48px auto;
    gap: 0;
  }
  .hikari-flow-steps-wrap > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .hikari-flow-steps-wrap > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .hikari-flow-steps-wrap > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .hikari-flow-steps-wrap > :nth-child(4) { grid-column: 1 / -1; grid-row: 2; }
  .hikari-flow-steps-wrap > :nth-child(4)::before { transform: rotate(135deg); }
  .hikari-flow-steps-wrap > :nth-child(5) { grid-column: 1; grid-row: 3; }
  .hikari-flow-steps-wrap > :nth-child(6) { grid-column: 2; grid-row: 3; }
  .hikari-flow-steps-wrap > :nth-child(7) { grid-column: 3; grid-row: 3; }
}

@media (max-width: 960px) {
  .hikari-compare-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .compare-connector {
    min-height: 52px;
    margin: 0;
    transform: none;
  }
  .connector-arrow {
    width: 26px;
    height: 52px;
    transform: rotate(90deg);
  }
}

@media (max-width: 900px) {
  .hikari-hero {
    min-height: 0;
    padding: 38px 0 34px;
  }
  .hikari-hero-inner { min-height: 0; }
  .hikari-hero-content {
    width: 100%;
    min-height: 0;
  }
  .hikari-hero-cta-group {
    width: 100%;
    max-width: none;
  }
  .hikari-hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(210px, 39vw, 320px);
    margin-top: 30px;
  }
  .hikari-hero-visual-frame {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .hikari-reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hikari-options-content {
    grid-template-columns: 1fr;
  }
  .hikari-options-visual-col {
    max-width: 200px;
    margin: 0 auto;
  }
  .bottom-cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .bottom-cta-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hikari-hero-title {
    font-size: 32px;
  }
  .hikari-reasons-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hikari-reason-card:nth-child(2n) {
    border-right: 0;
  }
  .hikari-reason-card {
    border-bottom: 1px solid #dbe8f2;
  }
  .hikari-reason-card:last-child {
    border-bottom: 0;
  }
  .hikari-speed-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }
  .hikari-speed-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hikari-speed-table {
    min-width: 640px;
  }
  .hikari-three-cards-grid {
    grid-template-columns: 1fr;
  }
  .hikari-options-card {
    padding: 20px 16px;
  }
  .hikari-options-table-col {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hikari-matrix-table {
    min-width: 620px;
  }
  .bottom-cta-actions {
    flex-direction: column;
  }
  .bottom-phone-box {
    width: 100%;
    min-width: 0;
  }
  .bottom-mail-box {
    min-width: unset;
  }
  .hikari-downloads-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .hikari-hero {
    min-height: 480px;
    padding: 24px 0;
  }
  .hikari-hero-inner { min-height: 432px; }
  .hikari-hero-content {
    width: 48%;
    min-height: 432px;
  }
  .hikari-hero-title {
    font-size: clamp(25px, 4vw, 34px);
  }
  .hikari-hero-desc {
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.7;
  }
  .hikari-hero-desc br { display: none; }
  .hikari-hero-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .hikari-cta-phone-card,
  .hikari-cta-mail-card {
    min-height: 84px;
    padding: 9px 13px;
    border-radius: 14px;
  }
  .cta-phone-icon,
  .cta-mail-icon { width: 32px; height: 32px; border-radius: 10px; }
  .cta-phone-icon svg,
  .cta-mail-icon svg { width: 20px; height: 20px; }
  .cta-phone-number { font-size: 21px; }
  .cta-mail-main { gap: 5px; font-size: 13.5px; }
  .hikari-hero-visual {
    position: absolute;
    inset: 50% calc((100% - 100vw) / 2) auto auto;
    width: 47%;
    height: 310px;
    margin: 0;
    transform: translateY(-50%);
  }
}

@media (min-width: 760px) and (max-width: 960px) {
  .hikari-compare-grid {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    gap: 0;
  }
  .compare-connector {
    min-height: 0;
    margin: 0;
    transform: none;
  }
  .connector-arrow {
    width: 32px;
    height: 72px;
    transform: none;
  }
  .compare-card { padding-inline: 14px; }
  .compare-icons-bar { gap: 3px; }
  .icon-circle,
  .icon-circle img { height: 64px; }
  .icon-caption { font-size: 11.5px; }
}

@media (min-width: 660px) and (max-width: 768px) {
  .hikari-downloads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hikari-page .container {
    width: min(1320px, calc(100% - 40px));
  }
  .hikari-subnav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subnav-item {
    min-height: 58px;
    gap: 8px;
    padding: 10px 8px;
  }
  .subnav-item:nth-child(-n + 2) { border-bottom: 1px solid #eef4f9; }
  .subnav-item:nth-child(2n) { border-right: 0; }
  .subnav-item:nth-child(-n + 4) { border-bottom: 1px solid #eef4f9; }
  .subnav-icon {
    width: 34px;
    height: 34px;
  }
  .subnav-text {
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }
}

@media (max-width: 599px) {
  .hikari-hero-visual {
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
  }
  .hikari-hero-visual-frame { max-width: none; }
}

@media (max-width: 560px) {
  .hikari-hero { padding-block: 32px 28px; }
  .hikari-hero-desc br { display: none; }
  .hikari-hero-visual {
    height: clamp(180px, 58vw, 250px);
    margin-top: 24px;
  }
  .hikari-hero-cta-group { flex-direction: column; }
  .hikari-cta-phone-card,
  .hikari-cta-mail-card {
    min-height: 96px;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .cta-phone-icon,
  .cta-mail-icon { width: 30px; height: 36px; }
  .cta-phone-number { font-size: 23px; }
  .hikari-options-legend {
    flex-direction: column;
    gap: 4px;
  }
  .bottom-mail-box { width: 100%; }
  .bottom-mail-action { white-space: normal; }
  .bottom-mail-text { line-height: 1.45; }
  .hikari-download-btn { padding-inline: 18px; }
  .hikari-download-btn .btn-doc-arrow { right: 18px; }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hikari-hero {
    min-height: 430px;
    padding: 24px 0;
  }
  .hikari-hero-inner { min-height: 382px; }
  .hikari-hero-content {
    width: 48%;
    min-height: 382px;
  }
  .hikari-hero-lead { font-size: 18px; }
  .hikari-hero-title {
    margin-block: 4px 10px;
    font-size: clamp(27px, 4.2vw, 34px);
  }
  .hikari-hero-desc {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.65;
  }
  .hikari-hero-desc br { display: none; }
  .hikari-hero-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .hikari-cta-phone-card,
  .hikari-cta-mail-card { min-height: 80px; padding: 9px 14px; }
  .cta-phone-number { font-size: 21px; }
  .hikari-hero-visual {
    position: absolute;
    inset: 50% calc((100% - 100vw) / 2) auto auto;
    width: 48%;
    height: 270px;
    margin: 0;
    transform: translateY(-50%);
  }
}

@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand-logo {
    width: 38px;
    height: 46px;
  }
  .brand-name { font-size: 16px; }
  .brand-tagline { display: none; }
  .hikari-hero-title { font-size: 27px; }
}

@media (max-width: 480px) {
  .hikari-reasons-grid {
    grid-template-columns: 1fr;
  }
  .hikari-reason-card {
    border-right: 0;
  }
  .compare-icons-bar {
    gap: 4px;
  }
  .icon-circle {
    width: 100%;
    max-width: 52px;
    height: 58px;
  }
  .icon-circle img {
    width: 100%;
    height: 58px;
  }
  .icon-caption {
    font-size: 11.5px;
    line-height: 1.35;
  }
}

@media (max-width: 659px) {
  .hikari-flow-steps-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 0;
  }
  .hikari-flow-steps-wrap > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .flow-arrow-divider {
    min-height: 44px;
  }
  .flow-arrow-divider::before {
    transform: rotate(135deg);
  }
}
