@layer site-base, site-typography;

@layer site-base {
/* =========================================================
   IT-cares Japan / TOP
   Based on the visual system of IT-cares Global.
   Structure: Tokens → Base → Header → Components → Sections
              → Footer → Responsive → Accessibility
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-warm: #fffdf2;
  --color-text: #000000;
  --color-link: #031833;
  --color-text-strong: #606060;
  --color-heading-major: #5f6368;
  --color-heading-inner: #2b1b17;
  --heading-gradient: linear-gradient(90deg, #000033 0%, #6b7076 100%);
  --color-text-muted: #000000;
  --color-line: #ededed;
  --color-line-strong: #e4e4e4;
  --color-accent: #ffcc00;

  /* Content palette: calm blue/gray tones; brand yellow also marks English heading labels. */
  --color-content-navy: #0b2341;
  --color-content-blue: #244a73;
  --color-content-blue-soft: #eaf2f8;
  --color-content-blue-pale: #f2f6fa;
  --color-content-bg: #f6f8fb;
  --color-content-line: #d9e1e8;
  --color-content-blue-line: rgba(36, 74, 115, 0.28);

  --container: 1200px;
  --gutter: 24px;
  --section-space: 96px;
  --shared-consultation-heading-size: 28px;

  --radius-sm: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.045);
  --shadow-card-hover: 0 28px 68px rgba(0, 0, 0, 0.075);
  --shadow-accent: 0 14px 30px rgba(255, 204, 0, 0.18);

  --transition: 220ms ease;
}

/* ---------------------------------------------------------
   2. Base / reset
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
  background: var(--color-bg);
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--text-link-hover, var(--color-accent));
}

/* Desktop text links only; navigation, buttons and linked cards keep their existing interactions. */
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  main a[href]:hover:where(
    .text-link, .individual-service-text-link, .service-hub-text-link, .seo-inline-link,
    .new-text-links a, .new-service-note a, .site-map-tree a,
    .seo-service-related-mini a, .service-breadcrumb-list a, .breadcrumb a,
    .privacy-breadcrumb a,
    .company-profile-list a, .contact-phone-number a, .privacy-operator a
  ) {
    --text-link-hover: #b45309;
  }
}

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

button {
  color: inherit;
}

p,
h1,
h2,
h3,
ul {
  margin-top: 0;
}

section[id],
footer[id],
#phone-consultation,
#mail-consultation {
  scroll-margin-top: 90px;
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   3. Shared typography
   --------------------------------------------------------- */
h2 {
  color: #555555;
}

/* Desktop/tablet type scale for TOP and renewed service pages only.
   Smartphone typography and legacy pages retain their existing values. */
@media (min-width: 768px) {
  :where(.page-top, .services-directory-page, .individual-service-template) {
    --renewed-service-h2-size: 28px;
  }
}

/* Heading weight and tracking follow the AI development template. */
main h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
}

/* PC H1: one shared size; tablet and smartphone retain their type scales. */
@media (min-width: 1101px) {
  main h1 { font-size: 38px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .hero-copy h1 { font-size: clamp(2rem, 4.3vw, 2.8rem); }
  .new-page-hero h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
}

main h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

main :is(h3, h4) {
  font-weight: 700;
}

.eyebrow,
.section-label {
  font-size: 0.78rem;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-intro {
  max-width: none;
  margin-bottom: 42px;
}

.section-intro h2 {
  margin-bottom: 14px;
  font-size: var(--renewed-service-h2-size, clamp(1.75rem, 2.4vw, 2.35rem));
  line-height: 1.25;
}

.section-intro > p:last-child {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.85;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: pretty;
}

/* ---------------------------------------------------------
   4. Header / navigation
   --------------------------------------------------------- */
/* Single-row header: logo and global navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fffdf6;
  border-bottom: 1px solid #e5dfc9;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo-wrap { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-image { width: auto; height: 38px; }
.header-nav-area { min-width: 0; }
.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(6px, .7vw, 10px);
}
.main-nav > a:not(.header-contact), .nav-dropdown-trigger { display: flex; align-items: center; min-height: 76px; padding: 0 2px; color: var(--color-link); font-size: .92rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.main-nav > a:not(.header-contact):hover, .main-nav > a:not(.header-contact):focus-visible, .main-nav > a[aria-current="page"]:not(.header-contact), .nav-dropdown-trigger:hover, .nav-dropdown-trigger:focus-visible, .nav-dropdown-trigger.is-current, .nav-dropdown-trigger[aria-current="page"] { color: var(--color-content-blue); text-decoration: underline; text-decoration-color: #d0a300; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-dropdown { display: flex; align-items: stretch; }
.nav-dropdown-head { display: flex; align-items: center; }
.nav-dropdown-toggle { display: inline-flex; width: 28px; min-height: 44px; padding: 0; align-items: center; justify-content: center; color: var(--color-link); background: transparent; border: 0; cursor: pointer; }
.nav-industries .nav-dropdown-toggle { width: auto; gap: 8px; padding: 0 2px; font-weight: 700; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible { color: var(--color-content-blue); background: #fff3c3; border-radius: 8px; }
.nav-industries .nav-dropdown-toggle:hover, .nav-industries .nav-dropdown-toggle:focus-visible { background: transparent; }
.nav-dropdown-chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--transition); }
.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-chevron { transform: translateY(2px) rotate(225deg); }
.nav-dropdown-menu {
  position: absolute;
  z-index: 1200;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d9e1e8;
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 48px rgba(3, 24, 51, .15);
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-service-grid { --nav-group-line: #e9dba4; --nav-service-link-size: .87rem; --nav-service-link-weight: 500; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; align-items: start; }
.nav-service-group { min-width: 0; padding: 0 0 10px; border-bottom: 1px solid var(--color-content-line); }
.nav-service-column { display: flex; flex-direction: column; min-width: 0; gap: 12px; }
@media (min-width: 1101px) {
  .nav-services .nav-dropdown-menu { padding: 16px 22px; }
  .nav-services .nav-dropdown-menu a, .nav-services .nav-dropdown-menu span.nav-group-title { padding-block: 5px; }
  .nav-services .nav-service-group { padding-bottom: 6px; }
  /* Standalone services use the same visual language as child links. */
  .nav-services a.nav-group-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-left: 16px;
    font-size: var(--nav-service-link-size);
    font-weight: var(--nav-service-link-weight);
  }
  .nav-services a.nav-group-title::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -7px;
    border-left: 2px solid var(--nav-group-line);
    pointer-events: none;
  }
  .nav-services a.nav-group-title::after {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #b8ae90;
    border-right: 1.5px solid #b8ae90;
    transform: rotate(45deg);
    margin-right: 2px;
    pointer-events: none;
  }
  :is(.nav-industries, .nav-migration) { position: relative; }
  :is(.nav-industries, .nav-migration) .nav-dropdown-menu { left: 0; right: auto; width: var(--nav-compact-width, 240px); padding: 8px 12px; }
  .nav-migration { --nav-compact-width: 280px; }
  :is(.nav-industries, .nav-migration) .nav-industry-links { gap: 0; margin: 0; }
  :is(.nav-industries, .nav-migration) .nav-industry-links li + li { border-top: 1px solid var(--color-content-line); }
  :is(.nav-industries, .nav-migration) .nav-industry-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 9px; font-size: 14px; }
  :is(.nav-industries, .nav-migration) .nav-industry-links a::after { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  .header-inner { gap: 10px; }
  .main-nav { gap: 4px; }
  .main-nav > a:not(.header-contact), .nav-dropdown-trigger { font-size: .84rem; }
  .header-contact { padding-inline: 12px; }
}
.nav-dropdown-menu a, .nav-dropdown-menu span.nav-group-title { display: block; padding: 7px 9px; color: var(--color-link); border-radius: 6px; line-height: 1.55; overflow-wrap: anywhere; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible, .nav-dropdown-menu a[aria-current="page"] { color: var(--color-content-navy); background: #fff4c5; }
.nav-group-title { font-size: .96rem; font-weight: 800; }
.nav-group-title.is-current { background: var(--color-content-blue-pale); }
.nav-group-links, .nav-industry-links { list-style: none; padding: 0; margin: 3px 0 0; }
.nav-group-links { border-left: 2px solid var(--nav-group-line); margin-left: 9px; padding-left: 5px; }
.nav-group-links a { font-size: var(--nav-service-link-size); font-weight: var(--nav-service-link-weight); }
.nav-industry-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
.nav-industry-links a { font-weight: 700; text-align: left; }
.header-contact { display: inline-flex; align-self: center; min-height: 44px; padding: 0 18px; align-items: center; justify-content: center; color: var(--color-link); background: var(--color-accent); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); font-size: 1rem; font-weight: 800; white-space: nowrap; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--color-line-strong); border-radius: 10px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; background: var(--color-text); border-radius: var(--radius-pill); transition: transform var(--transition), opacity var(--transition); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Shared report/image lightbox (native dialog, no external library). */
body:has(.report-lightbox[open]) { overflow: hidden; }
.report-lightbox { border: 0; border-radius: 8px; padding: 0; width: min(1120px, calc(100% - 24px)); max-width: none; max-height: 90vh; max-height: 90dvh; background: #fff; color: #333; overflow: hidden; margin: auto; }
.report-lightbox::backdrop { background: rgba(0,0,0,.72); }
.report-lightbox-panel { display: flex; flex-direction: column; max-height: 90vh; max-height: 90dvh; }
.report-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #e5e5e5; }
.report-lightbox-toolbar p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.report-lightbox-actions { display: flex; gap: 8px; }
.report-lightbox-actions button { color: #333; background: #eee; border: 1px solid #d0d0d0; border-radius: 5px; padding: 9px 12px; cursor: pointer; font: inherit; }
.report-lightbox-actions button:focus-visible { outline: 2px solid #555; outline-offset: 2px; }
.report-lightbox-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px; }
.report-lightbox-image { display: block; width: 100%; height: auto; max-width: none; }
.report-lightbox.is-zoomed .report-lightbox-image { width: 1684px; }

/* ---------------------------------------------------------
   5. Buttons / links
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 800;
  transition: background var(--transition), border-color var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  color: var(--color-link);
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.header-contact:hover,
.header-contact:focus-visible {
  color: var(--color-accent);
  background: var(--color-link);
  border-color: var(--color-link);
  transform: translateY(-1px);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #ffffff;
  background: var(--color-link);
  border-color: var(--color-link);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--color-link);
  background: #ffffff;
  border-color: var(--color-content-blue-line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--color-content-navy);
  background: var(--color-content-blue-pale);
  border-color: var(--color-content-blue);
  transform: translateY(-1px);
}

.individual-service-text-link { color: var(--color-content-blue); text-decoration: underline; text-underline-offset: 3px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition), gap var(--transition);
  color: var(--color-link);
  font-size: 1rem;
  font-weight: 800;
}

.text-link > span {
  color: inherit;
  transition: transform var(--transition);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text-link-hover, var(--color-content-blue));
  gap: 11px;
}

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */
.hero {
  overflow: hidden;
  padding: 52px 0 72px;
  background: #ffffff;
  border-bottom: 1px solid #f1f1f1;
}

/* TOP hero desktop background */
@media (min-width: 1201px) {
  .hero {
    min-height: min(650px, 46.6vw);
    background-color: #ffffff;
    background-image: url("../images/top-hero-business-partner.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }
  .hero-inner {
    min-height: calc(min(650px, 46.6vw) - 124px);
    align-items: end;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: min(48%, 575px);
}

.hero-copy h1 {
  max-width: none;
  margin-bottom: 20px;
  line-height: 1.14;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-description {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--color-text);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.9;
  word-break: normal;
  overflow-wrap: anywhere;
}

.hero-buttons {
  display: flex;
  margin-top: 30px;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-buttons .btn-secondary:hover,
.hero-buttons .btn-secondary:focus-visible {
  color: #000000;
  background: #FFCC00;
  border-color: #FFCC00;
}

/* ---------------------------------------------------------
   7. Shared section shells
   --------------------------------------------------------- */
.section {
  padding: var(--section-space) 0;
  background: #ffffff;
  border-top: 1px solid #f1f1f1;
}

.section-soft {
  background: var(--color-content-bg);
}

/* Content links retain their base palette, with the desktop text-link hover token when applicable. */
main .individual-service-text-link:hover,
main .individual-service-text-link:focus-visible,
.hero ~ section a:not(.btn):hover,
.hero ~ section a:not(.btn):focus-visible {
  color: var(--text-link-hover, var(--color-content-blue));
}

/* ---------------------------------------------------------
   8. TOP section card system
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   TOP: inquiry email automation highlight
   --------------------------------------------------------- */

/* All TOP content sections share one heading rhythm and card language. */

/* Short examples use the same white / border / radius language in a compact form. */

/* ---------------------------------------------------------
   9. FAQ
   --------------------------------------------------------- */
#faq .section-intro {
  margin-bottom: 42px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.faq-column {
  display: grid;
  min-width: 0;
  gap: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.faq-item,
.faq-item + .faq-item {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 84px;
  padding: 24px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--color-heading-inner);
  background: #ffffff;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.6;
  text-align: left;
}

.faq-question > span:first-child {
  min-width: 0;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal;
}

.faq-question:hover,
.faq-question:focus-visible,
.faq-question[aria-expanded="true"] {
  background: #F0F5F9;
}

.faq-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-mark::before,
.faq-mark::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  background: var(--color-content-blue);
  border-radius: 999px;
  content: "";
  transition: transform var(--transition);
}

.faq-mark::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-mark::after {
  transform: rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.faq-answer > p {
  min-height: 0;
  margin: 0;
  padding: 0 68px 0 28px;
  overflow: hidden;
  color: #254F78;
  font-size: 1rem;
  line-height: 1.85;
  transition: padding 260ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
  padding-top: 0;
  padding-bottom: 24px;
}

/* ---------------------------------------------------------
   16. Footer
   --------------------------------------------------------- */
.site-footer {
  background: #071522;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  padding-top: 72px;
  padding-bottom: 28px;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-company-name {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.footer-brand p {
  margin: 0;
  color: #e7edf4;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-phone {
  display: inline-block;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--color-accent);
}

.footer-contact-btn {
  width: fit-content;
  box-shadow: none;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.footer-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.14);
}

.footer-heading {
  margin-bottom: 8px;
  color: #dfc17b;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-column a {
  color: #d9e2ec;
  font-size: .9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a,
.footer-bottom p,
.footer-bottom-separator {
  margin: 0;
  color: #aebdcb;
  font-size: 0.78rem;
}

/* ---------------------------------------------------------
   17. Heading hierarchy / visual theme
   --------------------------------------------------------- */
.heading-gradient {
  color: var(--color-heading-major);
}

main h3 {
  color: var(--color-heading-inner);
}

.faq-heading {
  margin: 0;
  font: inherit;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .heading-gradient {
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* 17a. Service directory, TOP, shared consultation */
/* Lower-page hero artwork, shared with AI development. Layout and colors stay page-specific. */
main :is(.new-page-hero, .service-hub-hero, .service-detail-hero, .page-header-simple) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 204, 0, 0.12) 0, rgba(255, 204, 0, 0) 30%),
    radial-gradient(circle at 86% 78%, rgba(0, 0, 51, 0.08) 0, rgba(0, 0, 51, 0) 34%),
    linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
}

main :is(.new-page-hero, .service-hub-hero, .service-detail-hero, .page-header-simple)::before,
main :is(.new-page-hero, .service-hub-hero, .service-detail-hero, .page-header-simple)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(3, 24, 51, 0.06);
  border-radius: 50%;
}

main :is(.new-page-hero, .service-hub-hero, .service-detail-hero, .page-header-simple)::before {
  width: 300px;
  height: 300px;
  top: -190px;
  right: 8%;
}

main :is(.new-page-hero, .service-hub-hero, .service-detail-hero, .page-header-simple)::after {
  width: 220px;
  height: 220px;
  bottom: -150px;
  left: 9%;
}

.new-page-hero { padding: 64px 0; border-bottom: 1px solid var(--color-content-line); }
.new-page-hero h1 { margin-bottom: 16px; line-height: 1.35; word-break: normal; overflow-wrap: anywhere; }
.new-page-hero p:last-child { max-width: var(--new-page-hero-copy-width, 900px); margin-bottom: 0; }
.new-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px, 1.8vw, 24px); }
.new-card { display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid var(--color-content-line); border-radius: 12px; background: #fff; color: var(--color-link); }
.new-card h3 { font-size: 1.2rem; line-height: 1.5; margin: 0 0 16px; word-break: normal; overflow-wrap: anywhere; }
.new-card p { font-size: 1rem; line-height: 1.8; margin: 0 0 18px; color: var(--color-text); }
.new-card-link { margin-top: auto; font-size: .95rem; font-weight: 700; color: var(--color-content-blue); }
.new-top #services .new-card { border: 1px solid #e5e5e5; border-radius: 0; box-shadow: none; padding: 20px 12px; }
.new-top #services .new-card:hover, .new-top #services .new-card:focus-visible { border-bottom-color: var(--color-content-blue); background: #fafafa; }
a.new-card:hover, a.new-card:focus-visible { color: var(--color-link); border-color: var(--color-content-blue); background: var(--color-content-blue-pale); }
.new-concern-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.new-concern-grid a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--color-content-line); border-left: 3px solid #b8c9dc; border-radius: 8px; font-weight: 700; color: var(--color-content-navy); }
.new-concern-grid a:hover, .new-concern-grid a:focus-visible { border-color: var(--color-content-blue); color: var(--color-content-blue); background: #f9fbfd; }
/* Directory pages: open notebook-style lists, shared with pricing. */
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); row-gap: clamp(42px, 4vw, 60px); align-items: start; }
.directory-grid > * { min-width: 0; }
main .directory-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 12px; background: #eff3f6; border-radius: 4px; color: #333333; font-size: 1.15rem; font-weight: 600; letter-spacing: normal; line-height: 1.5; }
.directory-icon { display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; background: transparent; color: #64695f; }
.directory-icon svg { width: 23px; height: 23px; }
#concern-list .concern-category-card { scroll-margin-top: 100px; }
#concern-list .concern-category-links { list-style: none; margin: 0; padding: 0; }
#concern-list .concern-category-links a { display: flex; align-items: baseline; gap: 9px; min-height: 44px; padding: 9px 2px; color: #162637; font-size: 1rem; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
#concern-list .concern-category-links a::before { content: "・"; flex: 0 0 auto; }
#concern-list .concern-category-links a > span { min-width: 0; }
#concern-list .concern-category-links a:hover, #concern-list .concern-category-links a:focus-visible { color: var(--text-link-hover, #b45309); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .directory-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .directory-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .directory-icon svg { width: 21px; height: 21px; }
}
.concern-copy { display: grid; gap: 4px; min-width: 0; }
.concern-description { color: #495b6b; font-size: .91rem; font-weight: 400; line-height: 1.6; }
.new-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
/* Section navigation buttons share one responsive size; consultation and hero CTAs retain their own layout. */
main .new-actions > .btn { width: min(100%, 320px); min-width: 0; padding: 10px 22px; line-height: 1.5; text-align: center; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  main .new-actions { justify-content: center; }
  main .new-actions > .btn { width: 70%; }
}

.new-consult { padding: clamp(20px,4vw,48px); border: 1px solid var(--color-content-line); border-radius: 20px; background: var(--color-content-blue-pale); text-align: center; }
.new-consult .new-actions { justify-content: center; }
.new-consult h2 { line-height: 1.4; }

.all-services-card { align-self: stretch; min-height: 100px; border-radius: 12px; padding: 22px; white-space: normal; text-align: center; font-size: 1.08rem; gap: 10px; background: #fff9e0; border-color: #d8b741; }
.industry-example-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px, 1.8vw, 24px); }
.industry-example { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--color-content-line); border-radius: 12px; color: var(--color-link); }
.industry-example:hover, .industry-example:focus-visible { border-color: var(--color-content-blue); background: var(--color-content-blue-pale); }
.industry-example h3 { margin: 0 0 12px; font-size: 1.16rem; line-height: 1.5; }
.industry-example p { margin: 0; color: var(--color-text); font-size: 1rem; }
.shared-consultation { padding: 58px 0; background: #eaf1f8; }
.shared-consultation .new-consult { background: #fff; border-color: #c9d8e5; }
.shared-consultation .new-consult p:not(.section-label) { max-width: 960px; margin-inline: auto; font-size: 1rem; line-height: 1.85; }
.shared-consultation .new-consult h2 { font-size: var(--shared-consultation-heading-size); margin: 0 0 18px; }
.shared-consultation .consult-purpose { font-weight: 700; }
.shared-consultation .btn { min-width: 240px; min-height: 54px; }
@media (max-width: 767px) {
  .shared-consultation .new-consult { padding: 20px 18px; text-align: left; }
  .shared-consultation .section-label { text-align: center; }
  .shared-consultation { --shared-consultation-heading-size: 18px; padding: 36px 0; }
  .shared-consultation .new-consult h2 { margin-bottom: 14px; }
  .shared-consultation .new-consult p:not(.section-label) { font-size: var(--itc-mobile-body, 15px); line-height: 1.7; margin-bottom: 0; }
  .shared-consultation .new-consult p > br { display: none; }
  .shared-consultation .consult-purpose { border-top: 1px solid #e9e5d8; margin-top: 16px; padding-top: 14px; }
  .shared-consultation .new-actions { margin-top: 20px; }
  .shared-consultation .btn { text-align: center; }
}
/* FAQ directory: preserve the accessible disclosure; use a quiet chevron. */
.faq-directory #faq .faq-column { gap: 0; }
.faq-directory #faq .faq-item { border: 0; border-radius: 0; box-shadow: none; }
.faq-directory #faq .faq-question { min-height: 44px; padding: 10px 2px; gap: 12px; color: #162637; font-size: 1rem; font-weight: 400; }
.faq-directory #faq .faq-mark { width: 16px; height: 16px; flex-basis: 16px; color: #64695f; }
.faq-directory #faq .faq-mark::before { width: 8px; height: 8px; top: 2px; left: 3px; background: transparent; border: solid currentColor; border-width: 0 1.5px 1.5px 0; border-radius: 0; transform: rotate(45deg); }
.faq-directory #faq .faq-mark::after { content: none; }
.faq-directory #faq .faq-question:is(:hover, :focus-visible, [aria-expanded="true"]) .faq-mark { color: #254F78; }
.faq-directory #faq .faq-question[aria-expanded="true"] .faq-mark::before { transform: translateY(4px) rotate(225deg); }
.faq-directory #faq .faq-answer > p { padding: 0 22px 0 2px; }
.faq-directory #faq .faq-item.is-open { border-bottom: 1px solid #e4e8e5; }
.faq-directory #faq .faq-item.is-open .faq-answer > p { padding-top: 8px; padding-bottom: 28px; }
@media (max-width: 767px) {
  .faq-directory #faq .faq-question, #concern-list .concern-category-links a { font-size: var(--itc-mobile-body, 15px); }
}
.site-map-tree, .site-map-tree ul { list-style: none; margin: 0; padding: 0 0 0 18px; }
.site-map-tree > li { padding-left: 0; }
.site-map-tree li { margin: 8px 0; line-height: 1.7; }
.site-map-tree ul { border-left: 1px solid var(--color-content-line); margin-top: 8px; }
.site-map-tree a { color: var(--color-content-blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* TOP-only visual simplification; hero H1 and footer retain their existing styles. */
.new-top, .page-top .shared-consultation { color: #333333; --color-text: #333333; --color-text-muted: #333333; }
.new-top .section { padding: 60px 0; }
.new-top .section-soft { background: #faf8f3; }

.new-top .section .btn, .new-top .hero-buttons .btn, .page-top .shared-consultation .btn { box-shadow: none; }
.new-top .new-concern-grid a, .new-top .industry-example { background: transparent; border-radius: 0; box-shadow: none; padding: 16px 12px; }
.new-top .industry-example { border: 0; border-bottom: 1px solid #e5e5e5; }
.new-top .new-concern-grid a { border: 1px solid #e5e5e5; font-weight: 600; color: #333333; }
.new-top .new-concern-grid a:hover, .new-top .new-concern-grid a:focus-visible, .new-top .industry-example:hover, .new-top .industry-example:focus-visible { border-bottom-color: var(--color-content-blue); background: #f5f5f5; }
.new-top .concern-description { color: #333333; }
.new-top .all-services-card { background: #fafafa; border-color: #e5e5e5; box-shadow: none; grid-column: 1 / -1; justify-self: center; width: min(100%, 360px); min-height: 62px; }
.new-top .all-services-card:hover, .new-top .all-services-card:focus-visible { background: var(--color-content-blue-pale); border-color: var(--color-content-blue); }
.page-top .shared-consultation { background: #f7f4eb; }
.page-top .shared-consultation .new-consult { border: 0; box-shadow: none; }
.new-top .section-intro, .new-top #faq .section-intro { margin-bottom: clamp(24px, 2.4vw, 32px); }
.new-top .section > .container > p + :is(.new-card-grid, .industry-example-list) { margin-top: clamp(24px, 2.4vw, 32px); }
.new-top .faq-list { display: block; }
.new-top .faq-column { max-width: none; margin: 0; gap: 10px; }
.new-top .faq-item { border: 0; border-bottom: 1px solid #e5e5e5; border-radius: 0; box-shadow: none; }
.new-top .faq-question { min-height: 58px; padding: 16px 12px; }
@media (max-width: 1000px) { .new-card-grid, .industry-example-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .new-top .all-services-card { grid-column: auto; width: 100%; } }
@media (max-width: 600px) {
  .new-card-grid, .new-concern-grid, .industry-example-list { grid-template-columns: 1fr; }
  .new-top .all-services-card { grid-column: auto; }
  .all-services-card { min-height: 62px; width: 100%; }
  .shared-consultation .btn { min-width: 0; }
  .site-map-tree, .site-map-tree ul { padding-left: 10px; }
  .new-top .section, .new-page-hero { padding: 40px 0; }
  .new-card, .industry-example { padding: 20px; }
  .new-consult .btn { width: 100%; white-space: normal; }
}

/* ---------------------------------------------------------
   18. Responsive
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-inner { display: flex; min-height: 70px; justify-content: space-between; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-nav-area { display: none; position: absolute; top: 100%; right: 0; left: 0; max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; padding: 14px; background: #fff; border: 1px solid var(--color-content-line); border-radius: 0 0 12px 12px; box-shadow: 0 16px 36px rgba(3,24,51,.15); }
  .header-nav-area.open { display: flex; flex-direction: column; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav > a:not(.header-contact), .nav-dropdown-trigger { min-height: 48px; padding: 10px 8px; font-size: 1rem; white-space: normal; }
  .main-nav > a:not(.header-contact), .nav-dropdown-head { border-bottom: 1px solid var(--color-content-line); }
  .nav-dropdown { display: block; }
  .nav-dropdown-head { --nav-toggle-width: 46px; justify-content: space-between; }
  .nav-dropdown-trigger { flex: 1; min-width: 0; }
  .nav-dropdown-toggle { width: var(--nav-toggle-width); flex: 0 0 var(--nav-toggle-width); }
  .nav-industries .nav-dropdown-toggle { display: grid; grid-template-columns: minmax(0, 1fr) var(--nav-toggle-width); flex: 1 1 auto; gap: 0; padding: 10px 0 10px 8px; text-align: left; }
  .nav-industries .nav-dropdown-chevron { justify-self: center; }
  .nav-dropdown-menu { position: static; max-height: none; overflow: visible; margin: 8px 0; padding: 12px; border: 1px solid var(--color-content-line); border-radius: 8px; background: var(--color-content-bg); box-shadow: none; }
  .nav-service-grid { grid-template-columns: 1fr; gap: 8px; }
  .nav-service-group { padding-bottom: 6px; }
  .nav-dropdown-menu a, .nav-dropdown-menu span.nav-group-title { padding: 9px; }
  .nav-group-links a { font-size: .94rem; }
  .header-contact { align-self: stretch; margin-top: 12px; }
}

@media (max-width: 920px) {
  :root {
    --section-space: 78px;
  }

  .hero-inner {
    gap: 34px;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1200px) {
  .hero { padding: 0 0 34px; background: #fff; }
  .hero::before { content: ""; display: block; width: 100%; aspect-ratio: 1837 / 856; background: url("../images/top-hero-business-partner.webp") center / contain no-repeat; }
  .hero-inner { padding-top: 28px; }
  .hero-copy { max-width: 100%; }
}

@media (max-width: 767px) {
  .faq-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  :root {
    --gutter: 18px;
    --section-space: 68px;
  }

  .logo-image {
    height: 31px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.65;
  }

  /* On mobile, keep CTA in normal flow after the audience tags.
     This avoids artificial empty space created by absolute positioning. */
  .hero-buttons {
    position: static;
    order: 5;
    width: 100%;
    margin-top: 22px;
    gap: 10px;
    flex-direction: column;
    align-self: flex-start;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    flex: none;
    font-weight: 600;
    font-size: 14px;
  }

  .footer-top {
    width: min(var(--container), calc(100% - 32px));
    padding-top: 24px;
    padding-bottom: 18px;
    gap: 16px;
  }

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

  .footer-column {
    padding: 14px 10px 15px;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .12);
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .footer-heading {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .footer-column:last-child .footer-heading {
    grid-column: 1 / -1;
  }

  .footer-column a {
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-brand {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 20px;
  }

  .footer-company-name {
    font-size: 15px;
    letter-spacing: 0.03em;
  }

  .footer-brand p {
    font-size: 12px;
  }

  .footer-phone {
    font-size: 20px;
  }

  .footer-contact-btn {
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
  }

  .footer-bottom {
    width: min(var(--container), calc(100% - 32px));
    min-height: 0;
    padding: 12px 0 16px;
    gap: 4px;
    text-align: center;
  }

  .footer-bottom a,
  .footer-bottom p,
  .footer-bottom-separator {
    font-size: 11px;
  }

}

@media (max-width: 520px) {

  .faq-question {
    min-height: 64px;
    padding: 15px 20px;
    font-size: 1rem;
  }

  .faq-answer > p,
  .faq-item.is-open .faq-answer > p {
    padding-right: 20px;
    padding-left: 20px;
  }

}

/* ---------------------------------------------------------
   19. Accessibility / motion preferences
   --------------------------------------------------------- */
:focus-visible {
  outline: 3px solid rgba(255, 204, 0, 0.32);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
}
