@layer site-base {
/* =========================================================
   IT-cares Japan / Service hub pages
   Scope: .service-page only
   Purpose: lower-page hub layout without overriding TOP sections.
   ========================================================= */

/* Service directory only: R12 layout. Existing service hub/detail styles stay unchanged. */
.services-directory-page .directory-hero {
  padding: 48px 0;
  border-bottom: 1px solid #e5e5e5;
}
.services-directory-page .directory-hero-layout,
.services-directory-page .directory-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
}
.services-directory-page .directory-hero-layout { align-items: center; }
.services-directory-page .directory-hero-copy,
.services-directory-page .directory-service-copy,
.services-directory-page .directory-specialties { min-width: 0; }
.services-directory-page .directory-hero h1 { color: #071522; }
.services-directory-page .directory-hero-lead {
  margin: 0 0 12px;
  color: #707070;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
}
.services-directory-page .directory-copy {
  margin: 0;
  color: #333333;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.services-directory-page .directory-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.services-directory-page .directory-index { padding: 32px 0; background: #fff; }
.services-directory-page .directory-index-grid,
.services-directory-page .directory-specialty-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}
.services-directory-page .directory-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-directory-page .directory-index-grid li,
.services-directory-page .directory-specialty-list li { min-width: 0; }
.services-directory-page .directory-index-grid a,
.services-directory-page .directory-specialty-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  height: 100%;
  padding: 11px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #333333;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.services-directory-page .directory-index-grid a { background: #faf8f3; }
.services-directory-page .directory-index-grid a:hover,
.services-directory-page .directory-index-grid a:focus-visible,
.services-directory-page .directory-specialty-list a:hover,
.services-directory-page .directory-specialty-list a:focus-visible {
  color: var(--color-content-blue);
  border-color: var(--color-content-blue-line);
  background: var(--color-content-blue-pale);
}
.services-directory-page .directory-index-grid a span,
.services-directory-page .directory-specialty-list a span { flex: 0 0 auto; color: #707070; }
.services-directory-page .directory-service { padding: 52px 0; }
.services-directory-page .directory-service.section-soft { background: #faf8f3; }
.services-directory-page .directory-service-layout { align-items: start; }
.services-directory-page .directory-service-single { grid-template-columns: minmax(0, 1fr); }
.services-directory-page .directory-service h2 {
  margin: 0 0 16px;
  font-size: var(--renewed-service-h2-size, clamp(1.75rem, 2.4vw, 2.35rem));
  line-height: 1.35;
}
.services-directory-page .directory-service .btn {
  background: #eeeeee;
  border-color: #d0d0d0;
  box-shadow: none;
  color: var(--color-link);
  gap: 8px;
}
.services-directory-page .directory-service .btn:hover,
.services-directory-page .directory-service .btn:focus-visible {
  color: var(--color-content-navy);
  background: #dedede;
  border-color: #b8b8b8;
}
.services-directory-page .directory-specialties-label {
  margin: 0 0 12px;
  color: #707070;
  font-weight: 600;
}
@media (max-width: 767px) {
  .services-directory-page .directory-hero { padding: 32px 0; }
  .services-directory-page .directory-hero-layout,
  .services-directory-page .directory-service-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .services-directory-page .directory-index { padding: 24px 0; }
  .services-directory-page .directory-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-directory-page .directory-service { padding: 36px 0; }
}
@media (max-width: 479px) {
  .services-directory-page .directory-index-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Breadcrumb */
.service-page .service-breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid #f1f1f1;
}

.service-page .service-breadcrumb-list {
  display: flex;
  min-height: 48px;
  margin: 0;
  padding: 8px 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.service-page .service-breadcrumb-list li,
.service-page .service-breadcrumb-list a {
  color: #666666;
  font-size: 0.82rem;
  line-height: 1.5;
}

.service-page .service-breadcrumb-list a:hover,
.service-page .service-breadcrumb-list a:focus-visible {
  color: var(--text-link-hover, var(--color-content-blue));
}

.service-page .service-breadcrumb-separator {
  color: #a0a0a0;
}

/* Japanese headings: wrap naturally, including long headings on narrow screens. */
.service-page h1,
.service-page main h2,
.service-detail-page h3{
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: balance;
}

/* Hero: lower-page identity with a centered composition. */

/* Tablet H1 scales retained; PC uses the shared H1 size in style.css. */
@media (min-width: 768px) and (max-width: 1100px) {

  .privacy-page .page-header-simple h1 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
}

/* Service hub heading layout. */

/* Service links retain blue interactions unless the desktop text-link hover token applies. */
.service-page main a:hover,
.service-page main a:focus-visible {
  color: var(--text-link-hover, var(--color-content-blue));
}

/* Shared hub heading */

/* Services: four primary choices in a balanced two-column grid. */

/* Short explanatory section */

/* Process: lightweight numbered sequence with whitespace between steps. */

/* Content-heavy hub sections: heading above content to avoid empty side space. */

/* Industries */

/* FAQ */

/* Responsive */

/* =========================================================
   IT-cares Japan / Service detail pages (third level)
   Scope: .service-detail-page only
   Purpose: reusable layout for individual automation services.
   ========================================================= */

/* Compact third-level hero: same visual language as the second-level hub. */

/* What we automate */

/* System flow diagram */

/* Automation / human handoff */
.service-detail-page .service-detail-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.service-detail-page .service-detail-split-card {
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid var(--color-line-strong);
  border-radius: 12px;
}

.service-detail-page .service-detail-split-label {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-detail-page .service-detail-split-card h3 {
  margin: 0 0 18px;
  color: var(--color-heading-inner);
  font-size: 1.2rem;
  line-height: 1.45;
}

.service-detail-page .service-detail-split-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.service-detail-page .service-detail-split-card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.97rem;
  line-height: 1.75;
}

.service-detail-page .service-detail-split-card li::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 0.72em;
  left: 0;
  background: var(--color-content-blue);
  border-radius: 50%;
}

/* Integrations */

/* Fit: compact issue index. Titles carry the meaning, so cards stay concise. */

/* Email detail: comic-like step story and related navigation.
   Shared under .service-detail-page so later detail pages can reuse it. */
.service-detail-page .service-story {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  counter-reset: none;
}

.service-detail-page .service-story-card {
  position: relative;
  min-width: 0;
  padding: 24px 20px 22px;
  background: #ffffff;
  border: 1px solid var(--color-line-strong);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(3, 24, 51, 0.045);
}

.service-detail-page .service-story-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  top: 50%;
  right: -25px;
  place-items: center;
  color: #ffffff;
  background: var(--color-content-blue);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(11, 35, 65, 0.16);
  font-size: 0.95rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.service-detail-page .service-story-step {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  place-items: center;
  color: #ffffff;
  background: #031833;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.service-detail-page .service-story-illustration {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--color-content-navy);
  background: var(--color-content-blue-soft);
  border: 1px solid var(--color-content-blue-line);
  border-radius: 50%;
}

.service-detail-page .service-story-illustration svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-detail-page .service-story-card h3 {
  margin: 0 0 12px;
  color: var(--color-heading-inner);
  font-size: 1.08rem;
  line-height: 1.45;
  text-align: center;
}

/* Daily-use walkthrough: one large visual and one plain-language explanation per step. */

/* Detail process: visual milestones with a clear connected sequence. */

/* Related service navigation: two columns by default; pages with three choices opt in via a modifier. */

@media (max-width: 980px) {

  .service-detail-page .service-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-page .service-story-card:nth-child(2)::after {
    display: grid;
    top: auto;
    right: 50%;
    bottom: -25px;
    transform: translateX(50%) rotate(90deg);
  }

}

@media (max-width: 720px) {

  .service-detail-page .service-story {
    grid-template-columns: 1fr;
  }

  .service-detail-page .service-story-card:not(:last-child)::after,
  .service-detail-page .service-story-card:nth-child(2)::after {
    display: grid;
    top: auto;
    right: 50%;
    bottom: -25px;
    transform: translateX(50%) rotate(90deg);
  }

  .service-detail-page .service-detail-split{
    grid-template-columns: 1fr;
  }

}

@media (max-width: 440px) {

  .service-detail-page .service-detail-split-card{
    padding: 22px;
  }

}

/* =========================================================
   Industry use-case detail
   Reusable for each industry page. System explanation stays compact;
   concrete examples are shown as photo-led stories.
   ========================================================= */

/* Renewed industry inquiry examples: reuse the individual service type scale. */
.industry-inquiry-page .industry-inquiry-photo-grid { align-items: center; gap: clamp(24px, 4vw, 56px); }
.industry-inquiry-page .industry-inquiry-photo { margin: 0; min-width: 0; }
.industry-inquiry-page .industry-inquiry-photo img { width: 100%; height: auto; border-radius: 8px; }
.industry-inquiry-page .service-story { margin-block: clamp(24px, 2.4vw, 32px); }
.industry-inquiry-page .service-story-card { box-shadow: none; text-align: center; }
@media (min-width: 981px) {
  .industry-inquiry-page .industry-inquiry-reverse .industry-inquiry-photo { order: 2; }
}
@media (max-width: 980px) {
  .industry-inquiry-page .industry-inquiry-photo-grid,
  .industry-inquiry-page .service-story { grid-template-columns: minmax(0, 1fr); }
  .industry-inquiry-page .service-story-card:not(:last-child)::after { top: auto; right: 50%; bottom: -25px; transform: translateX(50%) rotate(90deg); }
}

/* Industry AI use-case hub. Reuses the existing service-hub design language. */

/* ---------------------------------------------------------
   Homepage development
   --------------------------------------------------------- */

.web-production-page .works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.web-production-page .work-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.web-production-page .work-card:hover {
  border-color: rgba(3, 24, 51, 0.22);
}

.web-production-page .work-card-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef1f4;
}

.web-production-page .work-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.web-production-page .work-card-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  padding: 8px 12px;
  color: #806000;
  background: #faf8f3;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-production-page .work-card-body {
  display: flex;
  flex: 1;
  padding: 22px 22px 20px;
  flex-direction: column;
}

.web-production-page .work-meta {
  display: flex;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.web-production-page .work-meta span {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 11px;
  align-items: center;
  color: #555555;
  background: #faf8f3;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.web-production-page .work-card p.work-card-title {
  margin: 0 0 16px;
  color: var(--color-heading-inner);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.45;
  text-spacing-trim: space-all;
}

.web-production-page .work-card-body > p:not(.work-card-title) {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.web-production-page .work-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 4px;
  flex-wrap: wrap;
  gap: 10px;
}

.web-production-page .work-link-primary,
.web-production-page .work-link-secondary {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.web-production-page .work-link-primary {
  color: #fff;
  background: #031833;
}

.web-production-page .work-link-primary:hover,
.web-production-page .work-link-primary:focus-visible {
  color: #031833;
  background: var(--color-accent);
}

.web-production-page .work-link-secondary {
  color: var(--color-link);
  background: #fff;
  border: 1px solid var(--color-line-strong);
}

@media (max-width: 920px) {
  
  .web-production-page .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  
  .web-production-page .works-grid {
    grid-template-columns: 1fr;
  }

}

/* Homepage renewal page */

/* Individual service template: shared section rhythm and responsive cards. */
.individual-service-template main { color: #333333; --color-text: #333333; --color-text-muted: #333333; }
.individual-service-template .individual-service-hero { padding: 54px 0; }
.individual-service-template .individual-service-hero h1 { color: #071522; text-spacing-trim: space-all; }
.individual-service-template .individual-service-hero .individual-service-catch { margin: 0 0 12px; font-size: 1.1rem; font-weight: 600; color: #707070; }
.individual-service-template .individual-service-hero .individual-service-lead { max-width: none; width: 100%; margin: 0; line-height: 1.9; }
.individual-service-template .individual-service-section { padding: 60px 0; }
.individual-service-template .individual-service-soft { background: #faf8f3; }
.individual-service-template .individual-service-heading { margin-bottom: clamp(24px, 2.4vw, 32px); }
.individual-service-template .individual-service-heading h2 { margin: 0; }
.individual-service-template .individual-service-section > .container > p { margin: 0 0 12px; line-height: 1.9; }
.individual-service-template .individual-service-section > .container > p:last-child { margin-bottom: 0; }
/* Separate prose and content blocks without adding space between ordinary paragraphs. */
.individual-service-template .individual-service-section > .container > p + :is(.individual-service-grid, .individual-service-flow),
.individual-service-template .individual-service-section > .container > :is(.individual-service-grid, .individual-service-flow) + :is(.individual-service-grid, .individual-service-flow) { margin-top: clamp(24px, 2.4vw, 32px); }
.individual-service-template .individual-service-section > .container > :is(.individual-service-grid, .individual-service-flow) + p { margin-top: 24px; }
.individual-service-template .individual-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
/* Branching workflows: three paths on desktop, stacked for narrow screens. */
.individual-service-template .individual-service-grid.individual-service-branches { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .individual-service-template .individual-service-grid.individual-service-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Shared roadmap: responsive HTML stages and directional connectors. */
.individual-service-template .individual-service-map { display: grid; gap: 12px; margin: clamp(24px, 2.4vw, 32px) 0 24px; }
.individual-service-template .individual-service-map-stage { width: 100%; max-width: 860px; margin-inline: auto; text-align: center; }
.individual-service-template .individual-service-map-arrow { text-align: center; color: #806000; font-size: 1.5rem; line-height: 1.2; }
.individual-service-template .individual-service-card > .individual-service-map { margin: 0; }
.individual-service-template .individual-service-card > .individual-service-map .individual-service-map-stage { background: #faf8f3; }
.individual-service-template .individual-service-map-stage h4 { margin: 0 0 12px; color: var(--color-heading-inner); font-size: 1rem; line-height: 1.5; }
/* Text and illustration: reserve more space for the text on larger screens. */
.individual-service-template .individual-service-illustration { display: block; width: 100%; max-width: 380px; height: auto; border-radius: 6px; margin-inline: auto; }
@media (min-width: 768px) {
  .individual-service-template .individual-service-media-grid { grid-template-columns: minmax(0, 1fr) minmax(0, min(34%, 380px)); gap: 32px; align-items: start; }
}
.individual-service-template .individual-service-card { min-width: 0; padding: clamp(20px, 2vw, 28px) clamp(18px, 2.2vw, 28px); border: 1px solid #e5e5e5; background: #fff; border-radius: 6px; }
.individual-service-template .individual-service-card h3 { margin: 0 0 16px; color: var(--color-heading-inner); font-size: 1.1rem; line-height: 1.5; text-spacing-trim: space-all; }
.individual-service-template .individual-service-card p, .individual-service-template .individual-service-flow p { margin: 0; line-height: 1.85; }
.individual-service-template .individual-service-card ul { margin: 0; padding-left: 1.3em; }
.individual-service-template .individual-service-card li + li { margin-top: 12px; }
.individual-service-template .individual-service-card > p + :is(p, ul):not(.individual-service-example-proposal, .individual-service-example-outcome),
.individual-service-template .individual-service-card > ul + p:not(.individual-service-example-proposal, .individual-service-example-outcome) { margin-top: 16px; }
.individual-service-template .individual-service-card .individual-service-example-proposal,
.individual-service-template .individual-service-card .individual-service-example-outcome { padding-top: 16px; }
.individual-service-template .individual-service-example-proposal > strong { color: #b45309; }
.individual-service-template .individual-service-example-outcome > strong { color: #28733c; }
.individual-service-template .individual-service-flow { border-top: 1px solid #e5e5e5; }
.individual-service-template .individual-service-flow > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px; padding: 20px 4px; border-bottom: 1px solid #e5e5e5; }
.individual-service-template .individual-service-flow h3 { margin: 0; color: var(--color-heading-inner); font-size: 1.1rem; line-height: 1.5; text-spacing-trim: space-all; }
.individual-service-template .individual-service-section .faq-list { display: block; }
.individual-service-template .individual-service-section .faq-column { max-width: none; margin: 0; gap: 10px; }
.individual-service-template .individual-service-section .faq-item { border: 0; border-bottom: 1px solid #e5e5e5; border-radius: 0; box-shadow: none; }
.individual-service-template .individual-service-section .faq-question { min-height: 58px; padding: 16px 12px; }
@media (max-width: 767px) {
  .individual-service-template .individual-service-hero, .individual-service-template .individual-service-section { padding: 40px 0; }
  .individual-service-template .individual-service-grid, .individual-service-template .individual-service-flow > div { grid-template-columns: 1fr; }
  .individual-service-template .individual-service-flow > div { gap: 8px; }
}

/* Shared price hierarchy: all individual services use the same scale. */
.individual-service-template .individual-service-price-offer { margin: 0 0 32px; }
.individual-service-template .individual-service-price-offer p { margin: 0; line-height: 1.5; }
.individual-service-template .individual-service-price-message { color: #555555; font-size: 1.1rem; font-weight: 600; text-wrap: balance; }
.individual-service-template .individual-service-price-amount { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding-top: 12px; }
.individual-service-template .individual-service-price-period { color: #555555; font-size: 1.15rem; font-weight: 600; }
.individual-service-template .individual-service-price-amount strong { color: #806000; font-size: clamp(2rem, 3.4vw, 2.625rem); line-height: 1.25; font-weight: 700; white-space: nowrap; }
.individual-service-template .individual-service-price-tax { color: #555555; font-size: .9rem; }
.individual-service-template .individual-service-price-inclusive { padding-top: 8px; color: #555555; }
/* L Message: align both amounts even when one description wraps. */
.individual-service-template .lmessage-price-grid .individual-service-price-offer { display: flex; flex-direction: column; min-width: 0; margin-bottom: 0; }
.individual-service-template .lmessage-price-grid .individual-service-price-message { flex: 1; }
.homepage-development-page .homepage-work-card img { display: block; width: 100%; height: auto; margin-bottom: 14px; border: 1px solid #e5e5e5; border-radius: 4px; }

/* SEO service page */

/* SEO report cards; only the SEO detail page uses these. */
.individual-service-template .seo-report-total { text-align: center; margin: 0 0 24px; }
.individual-service-template .seo-report-total p { margin: 0; font-weight: 600; }
.individual-service-template .seo-report-total strong { display: block; color: #806000; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.3; }
.individual-service-template .seo-report-total strong span { font-size: .48em; margin-left: .25em; }
.individual-service-template .seo-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); margin: 24px 0; }
.individual-service-template .seo-report-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.individual-service-template .seo-report-card .section-label { margin: 0; color: #806000; }
.individual-service-template .seo-report-card h3 { margin: 0; }
.individual-service-template .seo-report-button { margin-top: auto; align-self: flex-end; max-width: 100%; background: #eeeeee; border-color: #d0d0d0; color: #071522; white-space: normal; text-align: center; padding: 10px 12px; }
.individual-service-template .seo-report-button:hover, .individual-service-template .seo-report-button:focus-visible { background: #dedede; border-color: #bdbdbd; }
@media (max-width: 1023px) { .individual-service-template .seo-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .individual-service-template .seo-report-grid { grid-template-columns: 1fr; } }

/* Contact CTA hover text visibility fix */

/* ---------------------------------------------------------
   WORKS DETAIL PAGES — case-specific layout only.
   Hero, sections, headings, cards and buttons use shared components.
   --------------------------------------------------------- */
.works-detail-page .work-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(16px, 1.8vw, 24px);
  align-items: start;
}
.works-detail-page .work-visual-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}
.works-detail-page .work-visual-card img { display: block; width: 100%; height: auto; }
.works-detail-page .work-image-caption { margin: 0; padding: 10px 12px; font-size: .85rem; color: #555555; }
.works-detail-page .meta-list { display: grid; gap: 14px; }
.works-detail-page .meta-row { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid #e5e5e5; }
.works-detail-page .meta-row:last-child { padding-bottom: 0; border-bottom: 0; }
.works-detail-page .meta-label { margin: 0; color: #806000; }
.works-detail-page .meta-value { line-height: 1.75; font-weight: 500; overflow-wrap: anywhere; }
.works-detail-page .work-point-number { margin-bottom: 8px; color: #806000; }
.works-detail-page main .new-actions .btn { box-shadow: none; }
@media (max-width: 767px) {
  .works-detail-page .work-detail-hero { grid-template-columns: minmax(0, 1fr); }
}

/* Company page */
.company-page{--new-page-hero-copy-width:100%;}
.company-page .company-intro h2,
.company-page .company-philosophy h2,
.company-page .company-staff h2,
.company-page .company-profile h2{margin:0 0 22px;}
.company-page .company-philosophy{background:#f6f5f1;}
.company-page .company-copy{max-width:none;}
.company-page .company-copy p{margin:0 0 8px;line-height:2;}
.company-page .company-copy p:last-child{margin-bottom:0;}
/* Company overview facts: a light, borderless summary. */
.company-page .company-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;list-style:none;padding:30px 0 0;margin:34px 0 0;border-top:1px solid #e0e4e5;text-align:center;}
.company-page .company-facts li{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:18px 10px;background:#f6f6f1;border-radius:8px;}
.company-page .company-facts strong{font-size:clamp(1.65rem,3vw,2.6rem);font-weight:700;color:#162637;line-height:1.35;letter-spacing:-.02em;}
.company-page .company-facts strong span{font-size:.48em;letter-spacing:0;margin-left:.14em;}
.company-page .company-fact-label{font-size:1rem;font-weight:600;color:#333;}
.company-page .company-fact-note{font-size:.84rem;color:#59636e;line-height:1.6;}
.company-page .company-staff{background:#f8f8f5;}
.company-page .staff-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,2vw,28px);align-items:start;margin-top:24px;}
.company-page .staff-item{min-width:0;text-align:center;}
.company-page .staff-item img{display:block;width:100%;height:auto;aspect-ratio:203/175;object-fit:cover;border-radius:10px;}
.company-page .staff-role{margin:8px 0 2px;color:#535b60;font-size:.85rem;line-height:1.5;overflow-wrap:anywhere;}
.company-page .staff-item h3{margin:0;color:#333;font-size:1rem;line-height:1.55;overflow-wrap:anywhere;}
.company-page .company-profile-list{margin:24px 0 0;border-top:1px solid #e0e4e5;}
.company-page .company-profile-list>div{display:grid;grid-template-columns:180px minmax(0,1fr);border-bottom:1px solid #e0e4e5;}
.company-page .company-profile-list dt,
.company-page .company-profile-list dd{margin:0;padding:18px 16px;line-height:1.8;}
.company-page .company-profile-list dt{font-weight:700;color:#263141;}
.company-page .company-profile-list dd{min-width:0;overflow-wrap:anywhere;}
.company-page .company-profile-list a{color:#031833;}
.company-page .company-profile-list a:hover,
.company-page .company-profile-list a:focus-visible{color:var(--text-link-hover, var(--color-accent));}

@media (min-width:681px) and (max-width:900px){
  .company-page .company-facts{grid-template-columns:repeat(2,minmax(0,1fr));}
  .company-page .staff-row{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 680px){
  .company-page .company-profile-list>div{grid-template-columns:1fr;}
  .company-page .company-profile-list dt{padding-bottom:6px;}
  .company-page .company-profile-list dd{padding-top:0;}
  
  .company-page .company-facts{grid-template-columns:1fr;gap:12px;margin-top:24px;padding-top:20px;}
  .company-page .company-facts li{padding:16px 12px;}
  .company-page .staff-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;}
  .company-page .staff-item img{border-radius:6px;}
  .company-page .staff-role{margin-top:8px;font-size:.8rem;}
  .company-page .staff-item h3{font-size:.95rem;}
}

/* Contact: shared form controls. */
.contact-page .contact-phone-hours { margin: 4px 0 10px; color: #7a8395; font-size: 14px; line-height: 1.7; }
.contact-page .contact-phone-number { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.contact-page .contact-phone-number a { color: var(--contact-phone-color, var(--color-heading-major)); text-decoration: none; }
.contact-page .contact-phone-number a:hover,
.contact-page .contact-phone-number a:focus-visible { color: var(--text-link-hover, var(--color-accent)); }
.contact-page .contact-form { display: grid; gap: 18px; margin-top: 22px; }
.contact-page .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-page .form-row { display: grid; gap: 8px; min-width: 0; }
.contact-page :is(.form-row > label, .contact-choices > legend) { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700; }
.contact-page .badge-required,
.contact-page .badge-optional { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.contact-page .badge-required { background: var(--contact-required-bg, rgba(255,204,0,.2)); color: var(--contact-required-color, #6a5400); border-radius: var(--contact-required-radius, 999px); }
.contact-page .badge-optional { background: rgba(32,44,72,.08); color: #68717a; border-radius: 999px; }
.contact-page .contact-form input,
.contact-page .contact-form select,
.contact-page .contact-form textarea { width: 100%; min-width: 0; border: 1px solid #d9e1e9; border-radius: var(--contact-field-radius, 16px); background: #fff; color: var(--color-text); font: inherit; line-height: 1.6; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-page .contact-form input,
.contact-page .contact-form select { min-height: 56px; padding: 0 16px; }
.contact-page .contact-form textarea { min-height: 180px; padding: 16px; resize: vertical; }
.contact-page .contact-form input:focus,
.contact-page .contact-form select:focus,
.contact-page .contact-form textarea:focus { outline: none; border-color: rgba(3,24,51,.55); box-shadow: 0 0 0 4px rgba(3,24,51,.08); }
.contact-page .form-help { margin: 2px 0 0; color: #68717a; font-size: .88rem; line-height: 1.7; }
.contact-page :is(.sales-consent-check, .contact-choice) input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; margin: 3px 0 0; padding: 0; border-radius: 4px; flex: 0 0 auto; accent-color: #031833; }
.contact-page .contact-sales-warning { margin-top: 2px; padding: 18px 20px; border: 1px solid rgba(135,55,42,.38); border-radius: var(--contact-warning-radius, 14px); background: transparent; }
.contact-page .contact-sales-warning h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.5; }
.contact-page .contact-sales-warning p { margin: 0 0 8px; font-size: .94rem; line-height: 1.8; }
.contact-page .contact-sales-warning p:last-of-type { margin-bottom: 0; }
.contact-page .sales-consent-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(135,55,42,.22); }
.contact-page .sales-consent-check label { margin: 0; line-height: 1.8; }
.contact-page .contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 6px; }
.contact-page .contact-submit .btn { min-width: 200px; justify-content: center; cursor: pointer; }
@media (max-width: 720px) { .contact-page .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .contact-page .contact-submit .btn { width: 100%; }
}

/* Renewed contact: open sections, shared design tokens and form controls. */
.contact-renewed {
  --new-page-hero-copy-width: 100%;
  --contact-field-radius: 6px;
  --contact-warning-radius: 6px;
  --contact-phone-color: #008c43;
  color: #333333;
  --color-text: #333333;
  --color-text-muted: #333333;
}
.contact-renewed > .section { padding: 60px 0; }
.contact-renewed > .section > .container > h2 { margin: 0 0 18px; font-size: var(--renewed-service-h2-size, 28px); line-height: 1.35; }
.contact-renewed > .section > .container > p:not(.section-label):not(.contact-phone-number):not(.contact-phone-hours) { margin: 0 0 10px; line-height: 1.9; }
.contact-renewed .contact-consultation-examples { margin-top: 28px; padding: clamp(18px, 2.5vw, 30px); background: #f6f5f1; border-radius: 6px; }
.contact-renewed :is(.contact-consultation-examples, .contact-form-guide) h3 { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.5; }
.contact-renewed .contact-consultation-examples ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.contact-renewed .contact-consultation-examples li { position: relative; min-width: 0; padding-left: 1.6em; line-height: 1.8; }
.contact-renewed .contact-consultation-examples li::before { content: ""; position: absolute; top: .55em; left: .2em; width: .45em; height: .8em; border: solid #806000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.contact-renewed .contact-phone-section { background: #f7f7f7; text-align: center; }
.contact-renewed .contact-phone-section .contact-phone-hours { margin: 14px 0 0; color: #59636e; }
.contact-renewed .contact-ai-reception { max-width: 860px; margin: 24px auto 0; padding: 16px clamp(14px, 2.5vw, 24px); background: #eff3f6; border-radius: 4px; color: #555555; }
.contact-renewed .contact-ai-reception h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; color: inherit; }
.contact-renewed .contact-ai-reception p { margin: 0; font-size: .95rem; line-height: 1.8; text-align: left; }
.contact-renewed .contact-form-guide { margin-top: 24px; padding: 18px 22px; border-left: 3px solid #d8b741; background: #faf8f3; }
.contact-renewed .contact-form-guide ul { margin: 0; padding-left: 1.2em; }
.contact-renewed .contact-form-guide li + li { margin-top: 6px; }
.contact-renewed :is(.form-row, .contact-choices) {
  --contact-required-bg: #eff3f6;
  --contact-required-color: #666666;
  --contact-required-radius: 4px;
}
.contact-renewed .contact-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-renewed .contact-choices > legend { padding: 0; margin-bottom: 8px; }
.contact-renewed .contact-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 12px; }
.contact-renewed .contact-choice-column { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-renewed .contact-choice { display: flex; align-items: flex-start; gap: 8px; min-width: 0; min-height: 44px; padding: 9px 0; font-size: .95rem; line-height: 1.65; cursor: pointer; }
.contact-renewed .contact-choice > span { min-width: 0; overflow-wrap: anywhere; }
.contact-renewed .contact-submit { justify-content: center; padding-top: 12px; }
.contact-renewed .contact-flow-section { background: #f6f5f1; }
.contact-renewed .contact-flow-section .new-card-grid { margin-top: 24px; }
.contact-renewed .contact-flow-section .new-card p { margin-bottom: 0; }
@media (max-width: 767px) {
  .contact-renewed > .section { padding: 40px 0; }
  .contact-renewed .contact-consultation-examples ul { grid-template-columns: minmax(0, 1fr); }
  .contact-renewed .contact-form-guide { padding: 16px; }
  .contact-renewed .contact-choice-grid { column-gap: 8px; }
  .contact-renewed .contact-choice { gap: 4px; }
}

/* ---------------------------------------------------------
   Pricing guide
   --------------------------------------------------------- */
/* Pricing directory: same open layout as concerns and FAQ. */
.pricing-content .pricing-section { min-width: 0; }
.pricing-content .pricing-section-lead { margin: 0 0 10px; color: #162637; font-size: .94rem; line-height: 1.75; }
.pricing-content .pricing-row { display: grid; gap: 7px; padding: 13px 2px 17px; }
.pricing-content .pricing-row + .pricing-row { border-top: 1px solid #efefec; }
.pricing-content .pricing-row h3 { margin: 0 0 5px; color: #162637; font-size: 1rem; font-weight: 600; line-height: 1.6; }
.pricing-content .pricing-row > div > p { margin: 0; color: #162637; font-size: .94rem; line-height: 1.75; }
.pricing-content .pricing-row .text-link { color: #162637; font-size: .9rem; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.pricing-content .pricing-row .text-link:hover, .pricing-content .pricing-row .text-link:focus-visible { color: var(--text-link-hover, #b45309); }
.pricing-content .pricing-price { margin: 0; color: #162637; text-align: right; line-height: 1.55; }
.pricing-content .pricing-price strong { font-size: 1.15rem; font-weight: 600; }
.pricing-content .pricing-price span, .pricing-content .pricing-price small { color: #333333; font-size: .84rem; }
.pricing-content .pricing-price small { display: block; margin-top: 2px; }
.pricing-content .pricing-quote strong { font-size: 1rem; }
.pricing-content .pricing-note { margin: 10px 0 0; color: #333333; font-size: .9rem; line-height: 1.75; }

/* ---------------------------------------------------------
   Privacy policy
   --------------------------------------------------------- */
.privacy-page .page-header-simple {
  padding: 52px 0 28px;
  border-bottom: 1px solid var(--color-content-line);
}

.privacy-page .page-header-simple h1 {
  margin: 0 0 12px;
  color: #202833;
  line-height: 1.3;
}

.privacy-page .page-header-simple p {
  max-width: none;
  width: 100%;
  margin: 0;
  color: #59636e;
  font-size: 0.92rem;
  line-height: 1.9;
}

.privacy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #77818c;
  font-size: 0.78rem;
}

.privacy-breadcrumb a {
  color: inherit;
}

.privacy-content {
  padding: 42px 0 68px;
}

.privacy-content > .container {
  width: min(900px, calc(100% - (var(--gutter) * 2)));
}

.privacy-section {
  margin-bottom: 32px;
}

.privacy-section h2 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.55;
}

.privacy-section p,
.privacy-section li,
.privacy-operator dt,
.privacy-operator dd {
  color: #3f4852;
  font-size: 0.9rem;
  line-height: 1.9;
}

.privacy-section p {
  margin: 0 0 10px;
}

.privacy-section ul {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

.privacy-section li + li {
  margin-top: 4px;
}

.privacy-operator dl {
  margin: 0;
}

.privacy-operator dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
}

.privacy-operator dt {
  font-weight: 600;
}

.privacy-operator dd {
  margin: 0;
}

.privacy-operator a {
  color: #334f6d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-revision {
  margin: 38px 0 0;
  color: #77818c;
  font-size: 0.82rem;
  text-align: right;
}

@media (max-width: 767px) {
  .privacy-page .page-header-simple {
    padding: 34px 0 22px;
  }

  .privacy-breadcrumb {
    margin-bottom: 18px;
  }

  .privacy-content {
    padding: 32px 0 48px;
  }

  .privacy-section {
    margin-bottom: 28px;
  }

  .privacy-operator dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px 0;
  }

  .privacy-revision {
    margin-top: 30px;
    text-align: left;
  }

}

/* Website migration: supplementary visual elements within shared service template. */

/* Keep external references secondary to the migration service content. */
.migration-page main .individual-service-text-link[target="_blank"] { font-size: .875em; font-weight: 400; }

/* Benefit headings: keep the semantic H3 and emphasize only the text. */
.migration-page #benefits .individual-service-card h3 {
  text-decoration: underline wavy #c65454;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}
/* Migration main-content CTA palette; shared consultation uses the common style. */
.migration-page main .new-actions .btn-primary {
  --text-link-hover: #fff;
  color: #fff;
  background: var(--color-link);
  border-color: var(--color-link);
  box-shadow: 0 8px 20px rgba(3, 24, 51, .12);
}
.migration-page main .new-actions .btn-primary:is(:hover, :focus-visible) {
  background: var(--color-content-blue);
  border-color: var(--color-content-blue);
}
.migration-page main .new-actions .btn-secondary { --text-link-hover: var(--color-link); }
.migration-page main .new-actions .btn-secondary:is(:hover, :focus-visible) {
  background: #f5f5f5;
  border-color: var(--color-content-blue-line);
}
.migration-page .migration-url { font-size: clamp(1.25rem, 2.8vw, 1.75rem); color: #008c43; font-weight: 700; overflow-wrap: anywhere; }
.migration-page .migration-cost-grid { text-align: center; }
.migration-page .migration-zero { font-size: clamp(2rem, 4vw, 3rem); color: #008c43; font-weight: 700; line-height: 1.3; }
.migration-page .migration-comparison { margin: 24px 0 0; border-top: 1px solid #e5e5e5; }
.migration-page .migration-comparison > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 4px; border-bottom: 1px solid #e5e5e5; }
.migration-page .migration-comparison dt { font-weight: 600; }
.migration-page .migration-comparison dd { margin: 0; }
.migration-page .migration-case img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #f6f5f1; margin-bottom: 18px; }
.migration-page :is(#jimdo, #wix, #wordpress, #peraichi) { scroll-margin-top: 100px; }
}
