
:root {
  --bg: #f1f5fa;
  --surface: #ffffff;
  --ink: #122134;
  --muted: #5d6f82;
  --accent: #1a4f81;
  --line: #d4dfeb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 15% 0%, #e6eef8 0, #f1f5fa 34%, #eaf1f8 100%); font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.7; font-size: 15.5px; }
body { overflow-x: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(82, 146, 210, 0.06), rgba(82, 146, 210, 0) 38%),
    repeating-linear-gradient(90deg, rgba(43, 95, 145, 0.035) 0 1px, transparent 1px 54px);
  opacity: 0.48;
}
a { color: var(--accent); text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.site-header { position: sticky; top: 0; backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(250,253,255,0.94), rgba(244,249,255,0.9)); border-bottom: 1px solid var(--line); z-index: 20; }
.site-header .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 14px 0; }
.site-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.brand-logo { width: auto; height: 52px; display: block; object-fit: contain; }
.brand-jp { font-size: 0.66rem; color: #5e6773; letter-spacing: 0.04em; line-height: 1.2; margin: 0; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 10px; }
.site-nav a { font-size: 0.82rem; color: #2d3644; padding: 7px 10px; border-radius: 6px; transition: background .2s, color .2s; }
.site-nav a:hover, .site-nav a.current { background: #e8edf3; color: #0a1f36; }
.nav-group { position: relative; }
.nav-parent { display: inline-block; font-size: 0.82rem; color: #2d3644; padding: 7px 10px; border-radius: 6px; transition: background .2s, color .2s; }
.nav-group.current .nav-parent, .nav-parent:hover { background: #e8edf3; color: #0a1f36; }
.submenu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; display: grid; gap: 2px; padding: 6px; background: #ffffff; border: 1px solid #d9e1ea; border-radius: 8px; box-shadow: 0 12px 24px rgba(15, 35, 58, 0.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; z-index: 30; }
.submenu a { display: block; padding: 5px 12px; line-height: 1.4; border-radius: 4px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.submenu a:hover { background: #eef3f8; color: #0a1f36; }
.nav-group:hover .submenu, .nav-group:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.hero { position: relative; min-height: min(54vh, 520px); border-radius: 12px; margin: 30px 0 36px; overflow: hidden; box-shadow: 0 20px 34px rgba(16, 34, 59, 0.14); background: #e7edf5; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; transform: scale(1.01); animation: hero-pan 24s ease-in-out infinite alternate; }
.hero-overlay { position: relative; z-index: 2; min-height: min(54vh, 520px); padding: 56px 56px; background: linear-gradient(102deg, rgba(245, 249, 254, 0.78), rgba(233, 241, 250, 0.48)); color: #13253b; }
.hero-small { margin: 0 0 7px; font-size: 0.86rem; letter-spacing: .08em; text-transform: uppercase; color: #33506f; font-weight: 600; }
.hero h1 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.24; max-width: 760px; font-family: "Noto Serif JP", Georgia, serif; color: #10253d; text-shadow: 0 1px 0 rgba(255,255,255,0.55); }
.hero-rotate-wrap { margin: 16px 0 0; font-size: 0.9rem; color: #234264; letter-spacing: 0.05em; }
.hero-rotate { display: inline-block; min-width: 9ch; font-weight: 700; color: #0f3155; transition: opacity .18s ease; }
.hero-rotate.is-out { opacity: 0; }
.tech-signal {
  margin: -10px 0 28px;
  padding: 14px 16px 16px;
  border: 1px solid #cfe0f0;
  border-radius: 12px;
  background: linear-gradient(170deg, #f8fbff 0%, #eef5fc 100%);
  box-shadow: 0 12px 26px rgba(22, 48, 79, 0.10);
}
.tech-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tech-head h2 { margin: 0; font-family: "Noto Serif JP", Georgia, serif; font-size: 1.1rem; color: #153351; }
.tech-head p { margin: 0; font-size: 0.84rem; color: #47607a; letter-spacing: 0.02em; }
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tech-grid article {
  padding: 10px 10px 9px;
  border-radius: 10px;
  border: 1px solid #d4e1ee;
  background: #ffffff;
}
.tech-grid h3 { margin: 0 0 3px; font-size: 0.79rem; letter-spacing: 0.08em; text-transform: uppercase; color: #214f7a; }
.tech-grid p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: #39506a; }
.tech-line {
  margin-top: 11px;
  height: 4px;
  border-radius: 999px;
  background: #dbe8f5;
  overflow: hidden;
}
.tech-line span {
  display: block;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, #2466a0, #5ca8dd);
  animation: tech-flow 4.8s ease-in-out infinite alternate;
}
.services { margin: 20px 0 38px; }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-family: "Noto Serif JP", Georgia, serif; font-size: 1.75rem; }
.section-heading p { margin: 0; color: var(--muted); }
.services-subtitle { font-size: 0.86rem; color: #536578; letter-spacing: 0.02em; background: #eef3f8; border: 1px solid #d8e1ea; border-radius: 999px; padding: 6px 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.service {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f3f7fc 100%);
  border: 1px solid #d6e0eb;
  border-radius: 12px;
  padding: 22px 22px 20px;
  box-shadow:
    0 8px 18px rgba(16, 40, 67, 0.10),
    0 18px 34px rgba(16, 40, 67, 0.08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #184f86, #2e78b7 50%, #59a3e6);
}
.service::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 162, 230, 0.18) 0%, rgba(90, 162, 230, 0) 72%);
  pointer-events: none;
}
.service:hover {
  transform: translateY(-4px);
  border-color: #b9cadc;
  box-shadow:
    0 12px 24px rgba(16, 40, 67, 0.13),
    0 24px 42px rgba(16, 40, 67, 0.10);
}
.service h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.4; color: #13263d; }
.service p { margin: 0 0 13px; color: #334155; line-height: 1.72; font-size: 0.95rem; }
.service a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #1c4f80;
  font-weight: 700;
}
.service a::after {
  content: "→";
  font-size: 0.95rem;
  transition: transform .2s ease;
}
.service:hover a::after { transform: translateX(3px); }
.firm { margin: 18px 0 48px; color: #f7fbff; border-radius: 10px; padding: 28px; background: linear-gradient(180deg, rgba(14,34,56,0.38) 0%, rgba(14,34,56,0.52) 100%), url(/images/santamonica-beach.jpeg) center / cover no-repeat; }
.firm h2 { margin: 0 0 8px; font-family: "Noto Serif JP", Georgia, serif; color: #ffffff; text-shadow: 0 1px 0 rgba(197, 191, 191, 0.25); font-size: 1.7rem; }
.firm p { margin: 0 0 14px; color: #ffffff; opacity: 0.95; font-size: 0.95rem; }
.firm a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
.content-page { margin: 30px 0 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.content-page h1 { margin-top: 0; font-family: "Noto Serif JP", Georgia, serif; border-bottom: 2px solid #dfe6ed; padding-bottom: 8px; font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
.content-body { overflow-wrap: anywhere; }
.content-body img { max-width: 100%; height: auto; border-radius: 4px; }
.content-body p { color: #2a3240; font-size: 0.96rem; }
.content-body iframe { width: 100%; max-width: 100%; }
.content-body table { width: 100%; }
.page.about .content-page { padding: 22px; }
.page.about .content-page > h1 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.page.about .content-body { max-width: 980px; margin: 0 auto; }
.page.about .content-body .wp-block-spacer { height: 14px !important; }
.page.about .content-body .wp-block-cover { min-height: 250px !important; border-radius: 10px; overflow: hidden; }
.page.about .content-body .wp-block-cover .wp-block-heading {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem) !important;
  line-height: 1.45;
}
.page.about .content-body > .wp-block-heading.has-text-align-center {
  text-align: left !important;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem) !important;
  line-height: 1.25;
  margin: 8px 0 6px;
  padding-left: 12px;
  border-left: 4px solid #1f4f78;
  background: none !important;
  color: #1b2738 !important;
}
.page.about .content-body .wp-block-media-text {
  gap: 28px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #f8fafc;
}
.page.about .content-body .wp-block-media-text__content .wp-block-heading {
  font-size: 1.04rem !important;
  line-height: 1.35;
  margin: 0 0 8px;
}
.page.about .content-body .wp-block-media-text__content .wp-block-heading:first-child {
  font-size: 0.74rem !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #2c4a6b !important;
}
.page.about .content-body .wp-block-media-text__media img {
  max-width: 220px;
  width: 100%;
  margin: 0 auto;
}

/* President profile: role, name, Education, Expertise as distinct blocks */
.president-profile { margin: 0 0 24px; }
.president-profile .wp-block-media-text {
  background: linear-gradient(165deg, #fafcff 0%, #f2f7fc 100%);
  border: 1px solid #d4e0ed;
  box-shadow: 0 10px 28px rgba(18, 45, 78, 0.08);
}
.president-role {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a4f81;
}
.president-name {
  margin: 0 0 24px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: #0f2438;
  line-height: 1.3;
}
.president-name-en { font-size: 0.85em; font-weight: 500; color: #3d5a78; }
.profile-blocks { display: grid; gap: 18px; }
.profile-block {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  border-left: 4px solid #2466a0;
  box-shadow: 0 2px 8px rgba(18, 45, 78, 0.05);
}
.profile-block-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2c5a85;
}
.profile-block-value {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #2a3544;
}
.profile-block-value strong { color: #13263d; }
.profile-list {
  list-style: none;
  padding-left: 0;
}
.profile-list li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 6px;
}
.profile-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2466a0;
  font-weight: 700;
}
.profile-list li:last-child { margin-bottom: 0; }

/* President bio: compact, professional body text */
.president-bio {
  margin: 20px 0 0;
  padding: 20px 24px 24px;
  background: #fafbfd;
  border: 1px solid #e4eaf1;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.78;
  color: #374151;
  letter-spacing: 0.01em;
}
.president-bio-title {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1e3a5f;
  border-bottom: 1px solid #d1dae6;
  padding-bottom: 10px;
}
.president-bio p,
.president-bio .president-bio-list {
  padding: 0;
}
.president-bio p {
  margin: 0 0 14px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.president-bio p:last-of-type { margin-bottom: 0; }
.president-bio-list {
  margin: 0 0 14px;
  padding-left: 1.35em;
  list-style: none;
  font-size: inherit;
  color: inherit;
}
.president-bio-list li {
  position: relative;
  margin-bottom: 4px;
}
.president-bio-list li::before {
  content: "–";
  position: absolute;
  left: -1.2em;
  color: #5b7280;
  font-weight: 400;
}
.president-bio-list li:last-child { margin-bottom: 0; }
.page.about .content-body p {
  font-size: 0.94rem;
  line-height: 1.68;
  margin: 0 0 8px;
}
.page.about .content-body table { font-size: 0.92rem; }
.page.about .content-body table td { padding: 8px 10px; }
.service-detail-page {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border-color: #d3deea;
  box-shadow: 0 16px 34px rgba(12, 33, 56, 0.10);
}
.service-detail-page > h1 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: #11273f;
}
.service-detail-page .content-body > figure.wp-block-image:first-child {
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 35, 58, 0.12);
}
.service-detail-page .content-body > .wp-block-pullquote {
  margin: 0 0 12px;
  border: 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #0f2944, #1d466f);
  box-shadow: 0 14px 28px rgba(13, 37, 63, 0.20);
}
.service-detail-page .content-body > .wp-block-pullquote blockquote { margin: 0; }
.service-detail-page .content-body > .wp-block-pullquote p {
  margin: 0;
  font-size: 1rem !important;
  line-height: 1.7;
  color: #edf4fb !important;
  font-style: normal !important;
}
.service-detail-page .content-body > .wp-block-spacer { height: 16px !important; }
.service-detail-page .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 10px 0 0;
}
.service-detail-page .wp-block-columns + .wp-block-columns { margin-top: 14px; }
.service-detail-page .wp-block-column {
  margin: 0 !important;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid #c8d7e7;
  background: linear-gradient(160deg, #ffffff 0%, #f2f7fd 100%) !important;
  box-shadow:
    0 10px 18px rgba(16, 40, 67, 0.10),
    0 20px 30px rgba(16, 40, 67, 0.08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-detail-page .wp-block-column:hover {
  transform: translateY(-4px);
  border-color: #b2c8df;
  box-shadow:
    0 14px 24px rgba(16, 40, 67, 0.13),
    0 24px 38px rgba(16, 40, 67, 0.10);
}
.service-detail-page .wp-block-column .wp-block-spacer { height: 8px !important; }
.service-detail-page .wp-block-column h2,
.service-detail-page .wp-block-column h3 {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem) !important;
  line-height: 1.38;
  color: #132c45 !important;
  letter-spacing: 0.01em;
}
.service-detail-page .wp-block-column p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.72;
  color: #314457;
}
.service-detail-page .wp-block-column a { color: #0f4877; font-weight: 700; }
.service-detail-page .has-pale-cyan-blue-background-color.has-background {
  background: #e8f1fb !important;
  border: 1px solid #c8d9ec;
  border-radius: 9px;
  padding: 8px 12px;
}
/* Development page hero (Software Developer image + overlay) */
.page.development .dev-hero {
  position: relative;
  min-height: min(42vh, 380px);
  margin: 24px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 34, 56, 0.55) 0%, rgba(14, 34, 56, 0.72) 100%), url(/images/Software-Developer.jpg) center / cover no-repeat;
}
.page.development .dev-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: min(42vh, 380px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page.development .dev-hero .dev-hero-overlay h1 {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.28;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.page.development .dev-hero .dev-hero-overlay .dev-hero-sub {
  margin: 0 0 14px;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.page.development .dev-hero .dev-hero-overlay .dev-intro-modal {
  max-width: 520px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #0f2944, #1d466f);
  box-shadow: 0 14px 28px rgba(13, 37, 63, 0.2);
}
.page.development .dev-hero .dev-hero-overlay .dev-intro-modal .dev-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #edf4fb;
  font-style: normal;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}
.page.development .content-page > .dev-content-title,
.page.development .content-body > .dev-hero-figure,
.page.development .dev-layout > .dev-intro-below { display: none; }
/* Consulting page hero (cross-border-business.webp + overlay) */
.page.consulting .consult-hero {
  position: relative;
  min-height: min(42vh, 380px);
  margin: 24px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 34, 56, 0.5) 0%, rgba(14, 34, 56, 0.68) 100%), url(/images/cross-border-business.webp) center / cover no-repeat;
}
.page.consulting .consult-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: min(42vh, 380px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page.consulting .consult-hero .consult-hero-overlay h1 {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.28;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.page.consulting .consult-hero .consult-hero-overlay .consult-hero-sub {
  margin: 0 0 14px;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.page.consulting .consult-hero .consult-hero-overlay .service-intro-modal,
.page.translation .translation-hero .translation-hero-overlay .service-intro-modal,
.page.mobile .mobile-hero .mobile-hero-overlay .service-intro-modal {
  max-width: 520px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #0f2944, #1d466f);
  box-shadow: 0 14px 28px rgba(13, 37, 63, 0.2);
}
.page.consulting .consult-hero .consult-hero-overlay .service-intro-modal p,
.page.translation .translation-hero .translation-hero-overlay .service-intro-modal p,
.page.mobile .mobile-hero .mobile-hero-overlay .service-intro-modal p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #edf4fb;
  font-style: normal;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.page.translation .translation-hero .translation-hero-overlay .translation-hero-sub {
  margin: 0 0 14px;
}
.page.consulting .content-page > .consult-content-title,
.page.consulting .content-body > .consult-hero-figure,
.page.consulting .content-body > .consult-pullquote-hidden { display: none; }
/* Translation page hero (Localization.jpg + overlay) */
.page.translation .translation-hero {
  position: relative;
  min-height: min(42vh, 380px);
  margin: 24px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 34, 56, 0.5) 0%, rgba(14, 34, 56, 0.68) 100%), url(/images/Localization.jpg) center / cover no-repeat;
}
.page.translation .translation-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: min(42vh, 380px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.page.translation .translation-hero .translation-hero-overlay h1 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.28;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.page.translation .translation-hero .translation-hero-overlay .translation-hero-sub {
  margin: 0;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.page.translation .content-page > .translation-content-title,
.page.translation .content-body > .translation-hero-figure,
.page.translation .content-body > .translation-pullquote-hidden { display: none; }
/* Mobile page hero (5g-edge-ai-hero-desktop.png + overlay) */
.page.mobile .mobile-hero {
  position: relative;
  min-height: min(42vh, 380px);
  margin: 24px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 34, 56, 0.5) 0%, rgba(14, 34, 56, 0.68) 100%), url(/images/5g-edge-ai-hero-desktop.png) center / cover no-repeat;
}
.page.mobile .mobile-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: min(42vh, 380px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page.mobile .mobile-hero .mobile-hero-overlay h1 {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.28;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.page.mobile .mobile-hero .mobile-hero-overlay .mobile-hero-sub {
  margin: 0 0 14px;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.page.mobile .content-page > .mobile-content-title,
.page.mobile .content-body > .mobile-hero-figure,
.page.mobile .content-body > .mobile-pullquote-hidden { display: none; }
.page.development .content-body {
  display: grid;
  gap: 14px;
}
.page.development .dev-layout {
  display: grid;
  gap: 14px;
}
.page.development .dev-intro {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c8d8e9;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf4fb, #f8fbff);
  color: #22374f;
  font-size: 0.98rem;
  line-height: 1.75;
}
.page.development .dev-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.page.development .dev-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #c7d6e6;
  background: linear-gradient(160deg, #ffffff 0%, #f3f8fe 100%);
  box-shadow: 0 10px 18px rgba(16, 40, 67, 0.10);
}
.page.development .dev-card h2 {
  margin: 0 0 6px;
  font-size: 1.08rem !important;
  line-height: 1.4;
  color: #13324d !important;
}
.page.development .dev-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334a61;
}
.page.development .stack-panel {
  margin-top: 2px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #c5d6e8;
  background: linear-gradient(170deg, #f3f8ff 0%, #ecf3fc 100%);
}
.page.development .stack-panel > h2 {
  margin: 0 0 10px;
  font-size: 1.15rem !important;
  color: #14314d !important;
}
.page.development .stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.page.development .stack-item {
  border: 1px solid #ccdaea;
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
}
.page.development .stack-item h3 {
  margin: 0 0 4px;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22517a !important;
}
.page.development .stack-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #33485f;
}
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; background: #f0f3f7; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.site-footer h4 { margin: 0 0 10px; font-family: "Noto Serif JP", Georgia, serif; }
.site-footer p { margin: 0 0 8px; color: #2f3846; }
.copyright, .company-en { font-size: 0.78rem; color: #5f6772; letter-spacing: 0.02em; }
.footer-minimal { text-align: center; padding-top: 8px; }
.copyright-line { font-size: 0.78rem; color: #5f6772; letter-spacing: 0.02em; margin: 0; }
@keyframes hero-pan {
  from { transform: scale(1.01) translateX(0); }
  to { transform: scale(1.06) translateX(-1.8%); }
}
@keyframes tech-flow {
  from { transform: translateX(0); }
  to { transform: translateX(175%); }
}
@media (max-width: 1200px) {
  .container { width: min(1120px, 94vw); }
  .hero-overlay { padding: 48px 44px; }
  .service { padding: 20px; }
}
@media (max-width: 1024px) {
  .site-header .container { gap: 16px; }
  .brand-logo { height: 46px; }
  .site-nav { gap: 6px 8px; }
  .hero { min-height: min(50vh, 480px); }
  .hero-overlay { min-height: min(50vh, 480px); padding: 40px 30px; }
  .hero h1 { font-size: clamp(1.65rem, 4.8vw, 2.45rem); }
  .grid { gap: 14px; }
  .content-page { padding: 22px; }
  .page.about .content-body .wp-block-media-text { grid-template-columns: 1fr !important; gap: 16px; }
}
@media (max-width: 900px) {
  .site-header .container { flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 6px 8px; }
  .site-nav > a, .site-nav .nav-parent { padding: 6px 10px; font-size: 0.8rem; line-height: 1.35; min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; }
  .site-nav > a { border-top: 3px solid transparent; }
  .site-nav > a:hover, .site-nav > a.current { background: #e8edf3; color: #0a1f36; }
  .site-nav:has(> a:hover) .nav-group.current .nav-parent { background: transparent; color: inherit; }
  .site-nav .nav-group { position: relative; display: flex; margin: 0; padding: 0; align-items: flex-end; }
  .site-nav .nav-group .nav-parent { background: transparent; border-top: 3px solid transparent; transition: background .2s, color .2s; }
  .site-nav .nav-group.current .nav-parent,
  .site-nav .nav-group .nav-parent:hover { background: #e8edf3; color: #0a1f36; }
  .site-nav .submenu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 35, 58, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 30;
  }
  .site-nav .nav-group:hover .submenu,
  .site-nav .nav-group:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav .submenu a { display: block; padding: 5px 12px; font-size: 0.76rem; line-height: 1.4; border-radius: 4px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
  .site-nav .submenu a:hover { background: #eef3f8; color: #0a1f36; }
  .hero-overlay { min-height: 46vh; padding: 36px 22px; }
  .hero-rotate-wrap { font-size: 0.9rem; }
  .tech-signal { margin-top: -6px; }
  .tech-head { flex-direction: column; align-items: flex-start; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .footer-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .service-detail-page { padding: 18px; }
  .service-detail-page .wp-block-columns { grid-template-columns: 1fr; gap: 12px; }
  .page.development .dev-cards,
  .page.development .stack-grid { grid-template-columns: 1fr; }
  .page.development .dev-hero { min-height: min(38vh, 320px); margin: 20px 0 24px; }
  .page.development .dev-hero-overlay { min-height: min(38vh, 320px); padding: 36px 24px; }
  .page.development .dev-hero .dev-hero-overlay h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .page.consulting .consult-hero { min-height: min(38vh, 320px); margin: 20px 0 24px; }
  .page.consulting .consult-hero-overlay { min-height: min(38vh, 320px); padding: 36px 24px; }
  .page.consulting .consult-hero .consult-hero-overlay h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .page.translation .translation-hero { min-height: min(38vh, 320px); margin: 20px 0 24px; }
  .page.translation .translation-hero-overlay { min-height: min(38vh, 320px); padding: 36px 24px; }
  .page.translation .translation-hero .translation-hero-overlay h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .page.mobile .mobile-hero { min-height: min(38vh, 320px); margin: 20px 0 24px; }
  .page.mobile .mobile-hero-overlay { min-height: min(38vh, 320px); padding: 36px 24px; }
  .page.mobile .mobile-hero .mobile-hero-overlay h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
}
@media (max-width: 680px) {
  body::before { opacity: 0.28; }
  .site-header .container { padding: 10px 0; }
  .brand-logo { height: 40px; }
  .brand-jp { font-size: 0.62rem; }
  .site-nav a, .nav-parent { font-size: 0.8rem; padding: 7px 9px; }
  .hero { margin: 18px 0 24px; min-height: min(44vh, 380px); border-radius: 10px; }
  .hero-overlay { min-height: min(44vh, 380px); padding: 24px 16px; }
  .hero-small { font-size: 0.8rem; }
  .hero h1 { font-size: clamp(1.36rem, 7.2vw, 1.9rem); line-height: 1.3; }
  .hero-rotate-wrap { margin-top: 12px; font-size: 0.84rem; }
  .tech-signal { padding: 12px; }
  .tech-grid { grid-template-columns: 1fr; }
  .services { margin-bottom: 24px; }
  .section-heading h2 { font-size: 1.45rem; }
  .services-subtitle { width: 100%; text-align: left; border-radius: 10px; }
  .service { padding: 16px; border-radius: 10px; }
  .service h3 { font-size: 1rem; }
  .firm { padding: 18px; margin-bottom: 28px; }
  .content-page { margin: 20px 0 30px; padding: 16px; border-radius: 10px; }
  .content-page h1 { font-size: clamp(1.28rem, 6.5vw, 1.65rem); }
  .content-body .wp-block-columns { gap: 10px; }
  .page.about .content-page { padding: 16px; }
  .page.about .content-body .wp-block-cover { min-height: 180px !important; }
  .page.about .content-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .page.development .dev-hero { min-height: min(34vh, 280px); margin: 16px 0 20px; border-radius: 10px; }
  .page.development .dev-hero-overlay { min-height: min(34vh, 280px); padding: 28px 18px; }
  .page.development .dev-hero .dev-hero-overlay .dev-intro { font-size: 0.92rem; }
  .page.consulting .consult-hero { min-height: min(34vh, 280px); margin: 16px 0 20px; border-radius: 10px; }
  .page.consulting .consult-hero-overlay { min-height: min(34vh, 280px); padding: 28px 18px; }
  .page.translation .translation-hero { min-height: min(34vh, 280px); margin: 16px 0 20px; border-radius: 10px; }
  .page.translation .translation-hero-overlay { min-height: min(34vh, 280px); padding: 28px 18px; }
  .page.mobile .mobile-hero { min-height: min(34vh, 280px); margin: 16px 0 20px; border-radius: 10px; }
  .page.mobile .mobile-hero-overlay { min-height: min(34vh, 280px); padding: 28px 18px; }
  .page.development .dev-intro { font-size: 0.92rem; }
  .page.development .stack-item p { font-size: 0.86rem; }
}
@media (max-width: 420px) {
  .container { width: 95vw; }
  .site-nav { gap: 4px 6px; }
  .site-nav a, .nav-parent { font-size: 0.76rem; padding: 6px 8px; }
  .hero-overlay { padding: 18px 13px; }
  body { font-size: 15px; }
  .service p,
  .content-body p { font-size: 0.88rem; }
  .copyright-line { font-size: 0.72rem; }
}
