/*
Theme Name: GrandCube
Theme URI: https://grandcube.jp/
Author: 株式会社グランキューブ
Description: 株式会社グランキューブ コーポレートサイト用オリジナルテーマ（GRANBYTE とデザインを共通化）
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: grandcube
*/

:root {
  /* ブランドカラー（GRANBYTE と共通） */
  --night: #0A1226;
  --navy-900: #0F1E3D;
  --navy-700: #1F3A6E;
  --navy-500: #3A5A94;
  --cyan: #19B5D6;
  --cyan-600: #1494B0;
  --cyan-700: #10768B;
  --face-top: #6E8FD0;
  --face-right: #4467A8;
  --face-left: #2A477F;

  --ink: #0F1E3D;
  --slate: #3D4A63;
  --muted: #5B6680;
  --line: #E1E7F0;
  --soft: #F3F6FB;
  --white: #FFFFFF;
  --on-dark: #DCE4F2;
  --on-dark-muted: #8FA3C8;

  --font-en: "Nunito", "M PLUS Rounded 1c", sans-serif;
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 30, 61, .06), 0 8px 24px rgba(15, 30, 61, .08);
  --shadow-lg: 0 2px 4px rgba(15, 30, 61, .06), 0 24px 48px rgba(15, 30, 61, .14);
  --header-h: 72px;
  --grid-lines:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.4; letter-spacing: .03em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
address { font-style: normal; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 32px); }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--navy-900); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.sp { display: none; }
@media (max-width: 720px) { .pc { display: none; } .sp { display: inline; } }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .05em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn--primary { background: var(--cyan); color: var(--night); box-shadow: 0 6px 20px rgba(25, 181, 214, .35); }
.btn--primary:hover { background: #3FC7E3; color: var(--night); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(25, 181, 214, .45); }
.btn--ghost { color: var(--navy-900); border-color: var(--line); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy-500); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em; margin-top: 24px;
  font-family: var(--font-head); font-weight: 700; color: var(--cyan-700); text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }
.section--dark .text-link { color: var(--cyan); }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 30, 61, .06); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__logo { flex: none; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.header__logo-img { width: 172px; height: auto; }
.header__logo-ja { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--muted); line-height: 1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
.nav__list a {
  position: relative; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--slate);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transition: transform .2s;
}
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--ink); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy-900); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px 16px 28px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .admin-bar .nav { top: calc(var(--header-h) + 46px); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__list a::after { display: none; }
  .nav__cta .btn { width: 100%; min-height: 50px; }
}
@media (max-width: 400px) { .header__logo-img { width: 150px; } .header__logo-ja { font-size: 9.5px; letter-spacing: .14em; } }

/* ---------- セクション共通 ---------- */
.section { padding: 112px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .24em;
  color: var(--cyan-600); margin-bottom: 14px;
}
.section--dark .section__eyebrow, .cta .section__eyebrow { color: var(--cyan); }
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--navy-900); }
.section--dark .section__title { color: #fff; }
.section__lead { margin-top: 18px; color: var(--muted); }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--on-dark);
  padding: 96px 0 120px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 70% at 75% 50%, rgba(25, 181, 214, .2), transparent 70%),
    radial-gradient(50% 60% at 5% 100%, rgba(58, 90, 148, .4), transparent 70%),
    var(--grid-lines);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid rgba(25, 181, 214, .4); border-radius: 999px;
  background: rgba(25, 181, 214, .08);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: #BDEFFA;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 181, 214, .25); animation: blink 2.4s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgba(25, 181, 214, 0); } }
.hero__title {
  margin-top: 26px;
  font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; line-height: 1.2; color: #fff; letter-spacing: .06em;
}
.hero__accent {
  background: linear-gradient(90deg, #19B5D6, #7FE0F2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 26px; font-size: 17px; color: var(--on-dark); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  margin-top: 48px; display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px;
}
.hero__stats li { padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero__stats li:first-child { padding-left: 0; border-left: 0; }
.hero__stats b { display: block; font-family: var(--font-en); font-weight: 800; font-size: 24px; color: #fff; line-height: 1.2; white-space: nowrap; }
.hero__stats small { font-family: var(--font-head); font-size: 13px; margin-left: 2px; }
.hero__stats span { font-size: 12.5px; color: var(--on-dark-muted); }
.hero__en {
  position: absolute; right: 24px; bottom: 22px;
  font-family: var(--font-en); font-weight: 300; font-size: 13px; letter-spacing: .3em; color: rgba(220, 228, 242, .45);
}

/* キューブ */
.hero__visual { position: relative; }
.cube { width: 100%; overflow: visible; }
.tile { transition: fill .8s ease; }
.tile--top { fill: var(--face-top); }
.tile--right { fill: var(--face-right); }
.tile--left { fill: var(--face-left); }
.tile.is-lit { fill: var(--cyan); }
.tile--left.is-lit { fill: var(--cyan-600); }
.tile--right.is-lit { fill: #22C3E4; }
.cube__bit { animation: bit 6s ease-in-out infinite; }
.cube__glow { animation: glow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bit { 50% { transform: translate(6px, -12px); } }
@keyframes glow { 50% { transform: scale(.9); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .cube__bit, .cube__glow, .dot { animation: none; } }

@media (max-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(300px, 70%); margin: 0 auto -8px; }
}
@media (max-width: 600px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__en { left: 16px; right: auto; }
}

/* ---------- ABOUT ---------- */
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about__head .section__title { font-size: clamp(26px, 3.2vw, 36px); }
.about__body p { color: var(--slate); }
.about__body p + p { margin-top: 18px; }
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.steps li { position: relative; padding: 28px 32px; display: grid; gap: 4px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li + li::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
}
.steps__num { font-family: var(--font-en); font-weight: 900; font-size: 14px; color: var(--cyan-600); letter-spacing: .1em; }
.steps b { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy-900); }
.steps span:last-child { font-size: 14px; color: var(--slate); }
@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; margin-top: 40px; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li + li::before { left: 50%; top: -9px; margin: 0 0 0 -8px; transform: rotate(135deg); }
}

/* ---------- 事業内容カード ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); color: var(--cyan);
}
.service-card__icon .icon { width: 30px; height: 30px; }
.service-card__num { position: absolute; top: 28px; right: 28px; font-family: var(--font-en); font-weight: 900; font-size: 15px; color: #C9D3E3; }
.service-card__en { margin-top: 22px; font-family: var(--font-en); font-weight: 800; font-size: 11.5px; letter-spacing: .2em; color: var(--cyan-600); }
.service-card__title { margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--navy-900); }
.service-card__text { margin-top: 12px; font-size: 14.5px; color: var(--slate); flex: 1; }
.service-card__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--cyan-700); }
.service-card__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* ---------- SCS（トップ） ---------- */
.scs-spot__bg, .granbyte__bg, .cta__bg, .page-hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 85% 30%, rgba(25, 181, 214, .18), transparent 70%), var(--grid-lines);
}
.scs-spot__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.scs-spot__text p:not(.section__eyebrow) { margin-top: 18px; color: var(--on-dark); }
.scs-spot__text strong { -webkit-box-decoration-break: clone; box-decoration-break: clone; color: #fff; background: linear-gradient(transparent 62%, rgba(25, 181, 214, .4) 62%); }
.scs-spot__text .btn { margin-top: 32px; }
.stars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.star-card {
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
}
.star-card--hi { background: linear-gradient(160deg, rgba(25, 181, 214, .22), rgba(31, 58, 110, .5)); border-color: rgba(25, 181, 214, .5); }
.star-card__level { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--on-dark-muted); text-transform: uppercase; }
.star-card__level span { font-family: var(--font-en); font-weight: 900; font-size: 40px; letter-spacing: 0; color: #fff; line-height: 1.1; }
.star-card--hi .star-card__level span { color: var(--cyan); }
.star-card__title { word-break: auto-phrase; margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: #fff; line-height: 1.6; }
.star-card__note { margin-top: 10px; font-size: 13px; color: var(--on-dark-muted); }
.stars__caption { grid-column: 1 / -1; padding: 16px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); font-size: 13.5px; color: var(--on-dark); text-align: center; }
@media (max-width: 900px) { .scs-spot__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .stars { grid-template-columns: 1fr; } }

/* ---------- DX ---------- */
.dx__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.dx__text p:not(.section__eyebrow) { margin-top: 18px; color: var(--slate); }
.dx__flow { counter-reset: dx; display: grid; gap: 12px; }
.dx__flow li {
  counter-increment: dx; position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: center;
  padding: 20px 24px; border-radius: var(--radius); background: var(--soft);
}
.dx__flow li::before {
  content: counter(dx, decimal-leading-zero); grid-row: span 2;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: var(--navy-900); color: var(--cyan); font-family: var(--font-en); font-weight: 900; font-size: 18px;
}
.dx__flow li:last-child::before { background: var(--cyan); color: var(--night); }
.dx__flow b { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy-900); }
.dx__flow span { font-size: 14px; color: var(--slate); }
@media (max-width: 900px) { .dx__inner { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- GRANBYTE ---------- */
.granbyte { background: linear-gradient(160deg, var(--navy-900), var(--night) 70%); }
.granbyte__inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.granbyte__brand {
  display: grid; place-items: center; gap: 20px; aspect-ratio: 1; padding: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(25, 181, 214, .2), rgba(255, 255, 255, .02) 65%);
  border: 1px solid rgba(255, 255, 255, .08);
  align-content: center;
}
.granbyte__brand img { width: min(320px, 100%); }
.granbyte__catch { font-family: var(--font-head); font-weight: 700; color: var(--on-dark); letter-spacing: .1em; }
.granbyte__text > p:not(.section__eyebrow) { margin-top: 18px; color: var(--on-dark); }
.granbyte__points { margin-top: 20px; display: grid; gap: 10px; }
.granbyte__points li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: #fff; }
.granbyte__points .icon { color: var(--cyan); }
.granbyte__text .btn { margin-top: 32px; }
@media (max-width: 900px) {
  .granbyte__inner { grid-template-columns: 1fr; gap: 32px; }
  .granbyte__brand { width: min(340px, 100%); margin: 0 auto; padding: 36px; }
}

/* ---------- 代表挨拶（トップ） ---------- */
.message-teaser { text-align: center; }
.message-teaser__title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--navy-900); line-height: 1.6; }
.message-teaser__text { margin-top: 24px; color: var(--slate); }
.message-teaser__sign { margin-top: 20px; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); }

/* ---------- リモートサポート帯 ---------- */
.support-band { padding: 48px 0; }
.support-band__inner { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.support-band__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: #E3F6FA; color: var(--cyan-700); }
.support-band__icon .icon { width: 28px; height: 28px; }
.support-band__title { font-size: 18px; font-weight: 800; color: var(--navy-900); }
.support-band p { font-size: 14px; color: var(--slate); }
.support-band .btn { margin-left: auto; }
@media (max-width: 720px) {
  .support-band__inner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .support-band .btn { margin-left: 0; }
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: 96px 0; background: linear-gradient(135deg, var(--navy-700), var(--night)); color: var(--on-dark); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; }
.cta__lead { margin-top: 16px; color: var(--on-dark); }
@media (max-width: 860px) {
  .cta { padding: 72px 0; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta__actions, .cta__actions .btn { width: 100%; }
}

/* ---------- フッター ---------- */
.footer { background: var(--night); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.footer__brand img { width: 180px; }
.footer__name { margin-top: 18px; font-family: var(--font-head); font-weight: 700; color: #fff; }
.footer__brand address { margin-top: 6px; }
.footer__note { margin-top: 6px; font-size: 12.5px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__head { font-family: var(--font-en); font-weight: 800; font-size: 12.5px; letter-spacing: .16em; color: #fff; margin-bottom: 14px; }
.footer__nav li + li { margin-top: 8px; }
.footer__nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__nav .icon { width: 14px; height: 14px; }
.footer__granbyte { margin-top: 20px; opacity: .85; }
.footer__granbyte img { width: 140px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .footer__nav { grid-template-columns: 1fr; } }

/* ---------- 下層ページ見出し ---------- */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: var(--night); color: var(--on-dark); }
.page-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.page-hero__eyebrow { margin-top: 36px; font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .24em; color: var(--cyan); }
.page-hero__title { margin-top: 8px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: #fff; }
.page-hero__lead { margin-top: 16px; color: var(--on-dark); }

/* ---------- 事業内容ページ ---------- */
.service-index { position: relative; z-index: 1; margin-top: -32px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.service-index a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; background: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; line-height: 1.4; text-align: center; color: var(--navy-900); text-decoration: none;
  transition: background-color .2s;
}
.service-index a:hover { background: var(--soft); }
.service-index .icon { width: 26px; height: 26px; color: var(--cyan-600); }
@media (max-width: 860px) { .service-index { grid-template-columns: repeat(3, 1fr); } }
.service-detail { padding-top: 80px; }
.service-row { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: 0; }
.service-row__visual {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: radial-gradient(70% 70% at 70% 20%, rgba(25, 181, 214, .25), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--night));
  color: var(--cyan); overflow: hidden;
}
.service-row__visual::before { content: ""; position: absolute; inset: 0; background: var(--grid-lines); background-size: auto; }
.service-row__icon .icon { position: relative; width: 96px; height: 96px; stroke-width: 1.2; }
.service-row__num { position: absolute; left: 20px; top: 14px; font-family: var(--font-en); font-weight: 900; font-size: 28px; color: rgba(255, 255, 255, .22); }
.service-row__title { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; color: var(--navy-900); }
.service-row__lead { margin: 6px 0 16px; font-family: var(--font-head); font-weight: 700; color: var(--cyan-700); }
.service-row__body > p:not(.section__eyebrow):not(.service-row__lead) { color: var(--slate); }
.checklist { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--soft); font-size: 14.5px; font-weight: 500; }
.checklist .icon { color: var(--cyan-600); width: 18px; height: 18px; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .service-row__visual { aspect-ratio: 16 / 7; }
  .service-row__icon .icon { width: 64px; height: 64px; }
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- SCS ページ ---------- */
.scs-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.scs-intro__text p:not(.section__eyebrow):not(.note) { margin-top: 18px; color: var(--slate); }
.scs-levels { display: grid; gap: 12px; }
.scs-level { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.scs-level__star { font-family: var(--font-en); font-weight: 900; font-size: 34px; color: var(--navy-900); text-align: center; }
.scs-level__name { font-family: var(--font-head); font-weight: 800; color: var(--navy-900); }
.scs-level p:not(.scs-level__star):not(.scs-level__name) { font-size: 13.5px; color: var(--slate); line-height: 1.7; }
.scs-level--hi { background: linear-gradient(160deg, var(--navy-700), var(--night)); border-color: transparent; }
.scs-level--hi .scs-level__star { color: var(--cyan); }
.scs-level--hi .scs-level__name { color: #fff; }
.scs-level--hi p:not(.scs-level__star):not(.scs-level__name) { color: var(--on-dark); }
.scs-level--muted { opacity: .7; border-style: dashed; }
@media (max-width: 900px) { .scs-intro { grid-template-columns: 1fr; } }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.reason__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); color: var(--cyan); }
.reason__icon .icon { width: 28px; height: 28px; }
.reason h3 { margin-top: 20px; font-size: 19px; font-weight: 800; color: var(--navy-900); }
.reason p { margin-top: 10px; font-size: 14.5px; color: var(--slate); }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } }

.flow { display: grid; gap: 0; }
.flow li { position: relative; padding: 0 0 36px 64px; }
.flow li::before { content: ""; position: absolute; left: 11px; top: 12px; width: 18px; height: 18px; border-radius: 5px; background: var(--cyan); box-shadow: 0 0 0 6px #E3F6FA; }
.flow li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 6px; width: 2px; background: var(--line); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow__num { font-family: var(--font-en); font-weight: 900; font-size: 13px; letter-spacing: .16em; color: var(--cyan-600); }
.flow h3 { font-size: 20px; font-weight: 800; color: var(--navy-900); }
.flow p { margin-top: 6px; color: var(--slate); }
.flow--compact { margin-top: 56px; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow--compact li { padding: 24px; border-radius: var(--radius-lg); background: var(--soft); }
.flow--compact li::before, .flow--compact li::after { display: none; }
.flow--compact h3 { margin-top: 4px; font-size: 17px; }
.flow--compact p { font-size: 14px; }
@media (max-width: 760px) { .flow--compact { grid-template-columns: 1fr; } }

/* ---------- 会社概要 ---------- */
.message__title { margin-bottom: 40px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--navy-900); line-height: 1.6; }
.message p:not(.section__eyebrow):not(.message__sign) { color: var(--slate); line-height: 2.05; }
.message p + p { margin-top: 1.4em; }
.message__sign { margin-top: 40px !important; text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); line-height: 1.9; }
.message__sign span { font-size: 22px; letter-spacing: .14em; }

.deflist { background: var(--white); border-radius: var(--radius-lg); padding: 8px 36px; box-shadow: var(--shadow); }
.deflist > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.deflist > div:last-child { border-bottom: 0; }
.deflist dt { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); }
.deflist dd { margin: 0; color: var(--slate); }
.deflist a { color: var(--cyan-700); }
.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); }
@media (max-width: 640px) {
  .deflist { padding: 4px 20px; }
  .deflist > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
}

/* ---------- リモートサポート ---------- */
.alert { padding: 20px 24px; border-radius: var(--radius); background: #FFF4E5; border-left: 4px solid #F28C28; }
.alert b { font-family: var(--font-head); color: #8A4B00; }
.alert p { margin-top: 4px; font-size: 14.5px; color: #5C3A10; }
.apps { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.app-card--main { background: linear-gradient(160deg, var(--navy-700), var(--night)); border-color: transparent; color: var(--on-dark); box-shadow: var(--shadow-lg); }
.app-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #E3F6FA; color: var(--cyan-700); }
.app-card--main .app-card__icon { background: rgba(25, 181, 214, .16); color: var(--cyan); }
.app-card__icon .icon { width: 26px; height: 26px; }
.app-card__tag { margin-top: 18px; font-size: 12.5px; font-weight: 700; color: var(--cyan-700); }
.app-card--main .app-card__tag { color: var(--cyan); }
.app-card__name { font-size: 20px; font-weight: 800; color: var(--navy-900); }
.app-card--main .app-card__name { color: #fff; }
.app-card__text { margin: 10px 0 24px; font-size: 14.5px; color: var(--slate); flex: 1; }
.app-card--main .app-card__text { color: var(--on-dark); }
@media (max-width: 720px) { .apps { grid-template-columns: 1fr; } }

/* ---------- お問い合わせ ---------- */
.form-card { padding: 48px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form { display: grid; gap: 22px; }
.field label { display: block; margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); }
.req { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: var(--cyan); color: var(--night); font-size: 11.5px; vertical-align: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cyan-600); background: var(--white); box-shadow: 0 0 0 4px rgba(25, 181, 214, .18); }
.field--agree label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.field--agree input { width: 20px; height: 20px; accent-color: var(--cyan-600); }
.field--agree a { color: var(--cyan-700); }
.form-submit { text-align: center; margin-top: 8px; }
.form-submit .btn { min-width: 240px; }
.hp { position: absolute; left: -9999px; }
.notice { margin-bottom: 24px; padding: 16px 20px; border-radius: 12px; font-weight: 500; }
.notice--ok { background: #E3F6FA; color: var(--cyan-700); }
.notice--err { background: #FDECEC; color: #B42318; }
@media (max-width: 640px) { .form-card { padding: 28px 20px; } .form-submit .btn { width: 100%; } }

/* ---------- 本文・投稿 ---------- */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { margin-top: 2.2em; padding-bottom: 10px; border-bottom: 2px solid var(--line); font-size: 22px; font-weight: 800; color: var(--navy-900); position: relative; }
.entry-content h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--cyan); }
.entry-content h3 { margin-top: 1.8em; font-size: 18px; font-weight: 800; color: var(--navy-900); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content a { color: var(--cyan-700); }
.entry-content img { border-radius: var(--radius); }
.policy-date { margin-top: 3em !important; text-align: right; color: var(--muted); font-size: 14px; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 24px; padding: 20px 4px; text-decoration: none; }
.news-list time { font-family: var(--font-en); font-weight: 700; color: var(--cyan-700); flex: none; }
.news-list a:hover span { color: var(--cyan-700); }
.entry-date { font-family: var(--font-en); font-weight: 700; color: var(--cyan-700); margin-bottom: 24px; }
.entry-thumb { margin-bottom: 32px; }
.entry-nav { margin-top: 56px; display: flex; justify-content: space-between; gap: 16px; }
.entry-nav a { color: var(--cyan-700); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--navy-900); color: #fff; border-color: transparent; }
