/* =============================================
   common.css
   Shared across all pages: base, scroll-reveal, layout helpers,
   site header + navbar, site footer, floating page-top.
   Page-specific styles live in style.css / features.css.
   ============================================= */

/* =============================================
   Base
   ============================================= */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  transition: opacity var(--transition);
}
a:hover {
  opacity: 0.7;
}

/* Smooth scroll target offset for fixed header */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   Scroll-triggered reveal
   ============================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   Layout helpers
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-pc);
  margin: 0 auto;
  padding-left: var(--container-pad-pc);
  padding-right: var(--container-pad-pc);
}

.section-pad {
  padding-top: var(--section-pad-y-pc);
  padding-bottom: var(--section-pad-y-pc);
}

/* Bilingual section heading: large en-serif behind small jp */
.section-heading {
  position: relative;
  display: inline-block;
  line-height: 1;
  margin-bottom: 64px;
}
.section-heading__en {
  display: block;
  font-family: var(--font-en-serif);
  font-weight: 400;
  font-size: var(--fs-4xl);
  color: var(--color-decoration);
  letter-spacing: 1.6px;
}
.section-heading__jp {
  position: absolute;
  left: 0;
  bottom: 8px;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--color-text);
  letter-spacing: 4.8px;
  white-space: nowrap;
}

/* Pill button with leading underline (matches Figma "è©³ã—ãè¦‹ã‚‹") */
.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 280px;
  padding: 20px 32px;
  font-family: var(--font-jp);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--color-text);
  background: transparent;
  border-top: 1px solid var(--color-text-muted);
  border-bottom: 1px solid var(--color-text-muted);
}
.btn-detail::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 30%;
  height: 2px;
  background: var(--color-accent);
}

/* Decorative diagonal line element used widely in design */
.deco-line {
  position: relative;
  height: 1px;
  background: var(--color-decoration);
}
.deco-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 1px;
  background: var(--color-accent);
}


/* =============================================
   Site Footer
   ============================================= */
.site-footer {
  position: relative;
  width: 100%;
  padding: 80px 100px 40px;
  background: #1B3D6E;
  color: #ffffff;
  min-height: 0;
  border: 0;
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* Top row: logo only (PAGE TOP moved out for viewport-edge alignment) */
.site-footer__top {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}
.site-footer__logo-img {
  display: block;
  width: 320px;
  height: 56px;
  object-fit: contain;
}

/* PAGE TOP â€” anchored to the right viewport edge */
.page-top {
  position: absolute;
  top: 80px;
  right: 32px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-align: center;
  z-index: 2;
}
.page-top__icon {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.page-top__label {
  font-family: var(--font-en-serif);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

/* Main: address+map | sitemap */
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 80px;
  padding-top: 24px;
}

.site-footer__address {
  font-family: var(--font-jp-serif);
  font-size: 14px;
  line-height: 1.8;
}
.site-footer__postal {
  margin: 0 0 4px;
}
.site-footer__street {
  margin: 0 0 24px;
}
.site-footer__map {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.site-footer__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}

/* ===== Floating PAGE TOP button =====
   Appears after scrolling past first viewport.
   Hides when over the footer (footer has its own embedded PAGE TOP).
   Dark navy by default (visible on white bg); inverts to white when over a dark section. */
.page-top-float {
  position: fixed;
  right: 32px;
  bottom: 40px;
  z-index: 50;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #1B3D6E;                /* dark navy default */
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.page-top-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.page-top-float.is-near-footer {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
/* Over dark sections (CTA, Hero) â†’ invert color to white */
.page-top-float.is-on-dark {
  color: #ffffff;
}
/* Icon uses mask-image so its color inherits from currentColor (CSS recolorable) */
.page-top-float__icon {
  display: block;
  width: 60px;
  height: 60px;
  background-color: currentColor;
  -webkit-mask: url("../assets/img/logo-to-top.svg") no-repeat center / contain;
          mask: url("../assets/img/logo-to-top.svg") no-repeat center / contain;
}
.page-top-float__label {
  font-family: var(--font-en-serif);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
}
@media (max-width: 767px) {
  .page-top-float {
    right: 16px;
    bottom: 20px;
  }
  .page-top-float__icon {
    width: 44px;
    height: 44px;
  }
  .page-top-float__label {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-top-float { transition: opacity 0.2s, color 0.2s; transform: none; }
}

/* Sitemap */
.site-footer__sitemap {
  font-family: var(--font-jp-serif);
  font-size: 14px;
}
/* TOP row standalone */
.sitemap__top-row {
  margin-bottom: 24px;
}
/* PC: 2 paired columns (header | sub) Ã— 2, standalone in col 3 below ä¼æ¥­æƒ…å ±.
   SP: 1 paired column, standalone full-width below. */
.sitemap__cols {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  grid-template-areas:
    "s-h s-s c-h c-s"
    "s-h s-s std .";
  column-gap: 50px;
  row-gap: 0;
  align-items: start;
}
.sitemap__col--service-h  { grid-area: s-h; }
.sitemap__col--service-s  { grid-area: s-s; }
.sitemap__col--company-h  { grid-area: c-h; }
.sitemap__col--company-s  { grid-area: c-s; }
.sitemap__standalone      { grid-area: std; margin-top: 96px; }

.sitemap__col,
.sitemap__standalone {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap__sub {
  position: relative;
  gap: 20px;
}

.sitemap__col.sitemap__sub::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  top: 0;
  left: -25px;
}

.sitemap__sub li {
  margin: 0;
}
.sitemap__sub a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
  opacity: 0.95;
}
.sitemap__title {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

/* Sitemap privacy link (hidden on PC/Tablet by default) */
.sitemap__privacy-sp {
  display: none;
}

/* Footer Bottom Row */
.site-footer__bottom {
  margin: 48px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__privacy {
  font-family: var(--font-jp-serif);
  font-size: 13px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.site-footer__privacy:hover {
  opacity: 0.7;
}

/* Copyright */
.site-footer__copy {
  margin: 0;
  padding: 0;
  border-top: none;
  text-align: right;
  font-family: var(--font-en-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* =============================================
   Footer â€” Tablet (â‰¤ 1200px)
   ============================================= */
@media (max-width: 1200px) {
  .site-footer {
    padding: 60px 48px 32px;
  }
  .site-footer__main {
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
  }
  .page-top {
    top: 60px;
    right: 24px;
  }
}

/* =============================================
   Footer â€” SP + small iPad (â‰¤ 767px)
   2-col paired (header | sub), standalone full-width below
   ============================================= */
@media (max-width: 767px) {
  .site-footer {
    padding: 40px 24px 32px;
  }
  .site-footer__top {
    margin-bottom: 24px;
  }
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 0;
  }
  .site-footer__map {
    height: 160px;
  }
  .sitemap__top-row {
    margin-bottom: 20px;
  }
  /* SP grid: header | sub-items Ã— 2 rows, then standalone full width */
  .sitemap__cols {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "s-h s-s"
      "c-h c-s"
      "std std";
    column-gap: 32px;
    row-gap: 32px;
  }
  .sitemap__standalone {
    margin-top: 0;
  }
  /* PAGE TOP button at bottom-right on SP â€” smaller */
  .page-top {
    top: auto;
    bottom: 100px;
    right: 16px;
  }
  .page-top__icon {
    width: 40px;
    height: 40px;
  }
  .page-top__label {
    font-size: 10px;
  }
  .sitemap__privacy-sp {
    display: block;
  }
  .site-footer__bottom {
    margin-top: 32px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .site-footer__privacy {
    display: none;
  }
  .site-footer__copy {
    text-align: center;
  }
}

/* =============================================
   Site Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  z-index: 1000;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: var(--header-h-pc);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-on-dark);
  flex-shrink: 0;
}
.site-logo__img {
  display: block;
  width: 264px;
  height: 48px;
  object-fit: contain;
}

/* Nav (PC) */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav__list a {
  display: inline-block;
  padding: 16px 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-on-dark);
}

/* Right actions cluster (PC) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
/* .site-header__tel {
  text-align: right;
} */
.site-header__tel--tel {
  display: block;
  font-family: var(--font-en-serif);
  font-size: var(--fs-base);
  letter-spacing: 0.8px;
  color: var(--color-text-on-dark);
}
.site-header__tel--num {
  font-size: 20px;
}
.site-header__tel-hours {
  font-size: 12px;
  letter-spacing: 0.48px;
  color: var(--color-text-on-dark);
  margin-top: 2px;
}
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 60px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text-on-dark);
  font-size: 16px;
}
.header-cta-btn:hover {
  background: var(--color-accent-light);
  opacity: 1;
}

/* SP actions (hidden on PC by default) */
.site-header__sp-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
.sp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-on-dark);
}
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-on-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =============================================
   SP toggle menu (Figma 3357:124) — full-screen navy overlay
   ============================================= */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 1100; /* above the sticky header (z-index 1000) */
  display: none;
  flex-direction: column;
  background: linear-gradient(100deg, #00457c 0%, #013a68 100%);
  color: #ffffff;
  overflow: hidden;
}
.sp-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d5dde8;
  color: #1b3d6e;
}
.sp-menu__watermark {
  position: absolute;
  left: -24px;
  bottom: 180px;
  width: 330px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  /* logo-icon.svg is dark navy → recolour to white so it reads faintly on the
     navy panel (the SVG keeps its built-in 0.1 opacity). */
  filter: brightness(0) invert(1);
}
.sp-menu__scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 82px 0 40px;
  display: flex;
  flex-direction: column;
}

/* Head row (group + single) — title + arrow box, underlined */
.sp-menu__group { padding: 10px 20px 20px; }
.sp-menu__single { padding: 9px 20px; }
.sp-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: #ffffff;
}
.sp-menu__head-title {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}
.sp-menu__head-box {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}
.sp-menu__head-box svg { width: 8px; height: 13px; }

/* Sub list */
.sp-menu__sub {
  list-style: none;
  margin: 0;
  padding: 14px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-menu__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  font-family: var(--font-jp-serif);
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}
.sp-menu__chev { flex-shrink: 0; display: inline-flex; color: rgba(255, 255, 255, 0.9); }
.sp-menu__chev svg { width: 8px; height: 14px; }

/* Foot — CTA + TEL */
.sp-menu__foot {
  margin-top: 26px;
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sp-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 195px;
  height: 60px;
  padding: 0 24px;
  border-radius: 50px;
  background: #4a81c7;
  color: #ffffff;
  font-family: var(--font-jp-serif);
  font-size: 16px;
  text-decoration: none;
}
.sp-menu__tel {
  margin-top: 6px;
  font-family: var(--font-en-serif);
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #ffffff;
}
.sp-menu__tel-num { font-size: 20px; margin-left: 8px; }
.sp-menu__hours {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-size: 14px;
  color: #ffffff;
}

/* Only active on tablet/SP (where the hamburger is shown).
   Slide in from the left; kept in layout so the transform can animate. */
@media (max-width: 1024px) {
  .sp-menu {
    display: flex;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
  }
  .sp-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .sp-menu,
  .sp-menu.is-open { transition: none; }
}

/* =============================================
   Header â€” Tablet (768 - 1024)
   ============================================= */
@media (max-width: 1200px) {
  .site-header__inner {
    padding: 0 24px;
    gap: 24px;
  }
  .site-nav__list {
    gap: 20px;
  }
  .site-nav__list a {
    font-size: 0.875rem;
  }
  .site-header__tel--tel {
    font-size: 1rem;
  }
  .header-cta-btn {
    min-width: 140px;
    height: 44px;
    font-size: 0.875rem;
  }
}

/* =============================================
   Header â€” iPad + SP (â‰¤ 1024)
   Hamburger pattern instead of full nav
   ============================================= */
@media (max-width: 1024px) {
  .site-nav,
  .site-header__actions {
    display: none;
  }
  .site-header__sp-actions {
    display: inline-flex;
  }

  /* Drawer when hamburger toggled */
  .site-nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-h-pc);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    padding: 32px 24px;
    overflow-y: auto;
    z-index: 9;
  }
  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.is-open .site-nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .site-nav.is-open .site-nav__list a {
    display: block;
    padding: 18px 8px;
    font-size: 1rem;
    color: #ffffff;
  }
}

/* =============================================
   Header â€” SP only (< 768)
   ============================================= */
@media (max-width: 767px) {
  .site-header__inner {
    height: var(--header-h-sp);
    padding: 0 16px;
    gap: 8px;
  }
  .site-logo__img {
    width: 180px;
    height: 32px;
  }
  .site-nav.is-open {
    top: var(--header-h-sp);
  }
}

/* =============================================
   Responsive
   - PC default: container 1240, side padding 100
   - Tablet (768 - 1024): scale paddings
   - SP (< 768): single column, smaller paddings
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding-left: var(--container-pad-tablet);
    padding-right: var(--container-pad-tablet);
  }
  .section-heading__en {
    font-size: 4rem;
  }
}

/* SP */
@media (max-width: 767px) {
  :root {
    --section-pad-y-pc: var(--section-pad-y-sp);
  }
  .container {
    padding-left: var(--container-pad-sp);
    padding-right: var(--container-pad-sp);
  }
  .section-heading {
    margin-bottom: 40px;
  }
  .section-heading__en {
    font-size: 3rem;
  }
  .section-heading__jp {
    font-size: 1.25rem;
  }
  .btn-detail {
    min-width: 240px;
    padding: 16px 24px;
  }
}

/* =============================================
   CTA section (お問い合わせ) — shared (originated on the top page)
   ============================================= */
.cta {
  width: 100%;
  padding: 100px;
  background: #1B3D6E; /* dark navy blue */
  color: #ffffff;
}
.cta__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cta__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
/* Row 1: each card has its own broken-frame (4 edge segments with corner gaps) */
.cta__row--light { gap: 20px; }
/* Row 2: individual bordered cards with gap */
.cta__row--image { gap: 20px; margin-top: 32px; }

.cta-card {
  position: relative;
  padding: 40px 30px;
  text-align: center;
  overflow: hidden;
  text-decoration: none;
}
/* Broken-frame edges for Row 1 cards (4 segments with gaps at corners) */
.cta-card__edge {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  z-index: 1;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-card__edge--t { top: 0; left: 24px; right: 24px; height: 1px; }
.cta-card__edge--b { bottom: 0; left: 24px; right: 24px; height: 1px; }
.cta-card__edge--l { left: 0; top: 30px; bottom: 30px; width: 1px; }
.cta-card__edge--r { right: 0; top: 30px; bottom: 30px; width: 1px; }
/* Close the edge gaps when hovering over the entire card */
.cta-card:hover .cta-card__edge--t,
.cta-card:hover .cta-card__edge--b {
  left: 0;
  right: 0;
}
.cta-card:hover .cta-card__edge--l,
.cta-card:hover .cta-card__edge--r {
  top: 0;
  bottom: 0;
}
/* Row 2 only: each card gets a full border */
.cta__row--image .cta-card { border: 1px solid rgba(255, 255, 255, 0.5); }
/* Ghost icon background (Row 1 only — opacity baked into SVG) */
.cta-card__bg-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
  opacity: 1;
}
/* Hide the ghost icon on hover (the per-card photo takes over) */
.cta-card:hover .cta-card__bg-icon {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Per-card photo: hidden at rest, revealed on hover (sits behind text/edges, above the ghost icon) */
.cta-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.cta-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 70, 0.55);
}
.cta-card:hover .cta-card__photo { opacity: 1; }
.cta-card__title,
.cta-card__desc,
.cta-card__btn {
  position: relative;
  z-index: 1;
}
.cta-card__title {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 20px;
  color: #ffffff;
}
.cta-card__desc {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 24px;
  color: #ffffff;
}
.cta-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 23px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.cta-card:hover .cta-card__btn,
.cta-card__btn:hover {
  background: rgba(91, 142, 200, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}
.cta-card__btn--filled {
  background: rgba(91, 142, 200, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
}
/* Image background variant for bottom row (PC) */
.cta-card--image {
  position: relative;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}
.cta-card--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 40, 70, 0.55), rgba(20, 40, 70, 0.55)),
    url("../assets/img/home-sv/service-consultant.webp");
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}
.cta-card--image > * { position: relative; z-index: 1; }
.cta-card--image:hover::before { opacity: 0; }
.cta-card--image .cta-card__btn--filled { transition: background-color 0.4s ease, border-color 0.4s ease; }
.cta-card--image:hover .cta-card__btn--filled { background: transparent; border-color: rgba(255, 255, 255, 0.6); }

/* ----- Entrance animation (reuses [data-reveal] + .is-visible) -----
   Card rises + subtly scales, the broken frame draws in, the ghost icon pops. */
.cta-card[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.96);
}
.cta-card[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.cta-card[data-reveal] .cta-card__edge {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              opacity 0.45s ease 0.2s,
              left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-card__edge--t, .cta-card__edge--b { transform-origin: center; }
.cta-card__edge--l, .cta-card__edge--r { transform-origin: center; }
.cta-card[data-reveal]:not(.is-visible) .cta-card__edge--t,
.cta-card[data-reveal]:not(.is-visible) .cta-card__edge--b { transform: scaleX(0); opacity: 0; }
.cta-card[data-reveal]:not(.is-visible) .cta-card__edge--l,
.cta-card[data-reveal]:not(.is-visible) .cta-card__edge--r { transform: scaleY(0); opacity: 0; }
.cta-card__bg-icon { transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
.cta-card[data-reveal]:not(.is-visible) .cta-card__bg-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

/* =============================================
   CTA — below 1024px: stack to 1 column; hide image row.
   At ≥1024 the full 3-column layout (both rows) shows.
   ============================================= */
@media (max-width: 1023px) {
  .cta { padding: 80px 40px; }
  .cta__row--image { display: none; }
  .cta__row--light { grid-template-columns: 1fr; gap: 20px; }
}
/* CTA — SP only (< 768px) */
@media (max-width: 767px) {
  .cta { padding: 40px 20px; }
  .cta-card { padding: 40px 20px; }
  .cta-card__title { font-size: 18px; }
  .cta-card__btn { min-width: 200px; height: 44px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-card--image::before,
  .cta-card--image .cta-card__btn--filled,
  .cta-card__photo { transition: none; }
  .cta-card[data-reveal],
  .cta-card[data-reveal] .cta-card__edge,
  .cta-card__bg-icon { transition: none; transform: none; opacity: 1; }
}

/* =============================================
   Footer — Tablet (768–1024): stack address over sitemap so the
   sitemap gets full width (otherwise its columns get crushed and
   the Japanese labels wrap one character per line).
   ============================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .site-footer__address {
    max-width: 420px;
  }
}

/* =============================================
   Page-banner photo — floating/breathing motion (same as the homepage hero):
   slow zoom-out + blur-in on load, then a gentle infinite "breathing" scale.
   ============================================= */
.page-banner__photo {
  animation:
    pb-scale-out 11.5s ease-out forwards,
    pb-blur-out   1.5s ease-out forwards,
    pb-float      10s ease-in-out 11.5s infinite;
}
@keyframes pb-scale-out {
  0%   { transform: scale(1.125); }
  100% { transform: scale(1); }
}
@keyframes pb-blur-out {
  0%   { filter: blur(15px); }
  100% { filter: blur(0); }
}
@keyframes pb-float {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .page-banner__photo { animation: none; }
}
/* SP: this is the LCP element on every inner page — the blur filter and the
   endless breathing scale keep a full-width layer repainting behind it. */
@media (max-width: 767px) {
  .page-banner__photo { animation: none; }
}

/* =============================================
   Service + Case (+ detail-btn, case-deco) - shared blocks
   Used by features / office (Service) and features / message / office (Case).
   Markup lives in partials/service.html + partials/case.html.
   ============================================= */
/* =============================================
   Service (サービス)  —  Figma node 4142:459 (PC) / 4142:547 (hover) / 4142:912 (SP)
   3×2 card grid on a blue gradient. Each card: big faint number watermark,
   title + en + arrow, broken-frame border. On hover a photo fades in.
   ============================================= */
.svc {
  position: relative;
  overflow: hidden;
  /* Figma fill_7SJ53Q: gradient light (top) → blue (bottom) */
  background: linear-gradient(0deg, #2866B7 0%, #D0E0F5 100%);
  padding: 96px 0 110px;
}
/* Big faint logo swoosh watermark (Figma logo, opacity 0.05, right side) */
.svc__deco {
  position: absolute;
  top: 0;
  right: -30px;
  width: 600px;
  height: 680px;
  background: url("../assets/img/promise-deco.svg") no-repeat center / contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.svc__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px; /* container */
  margin: 0 auto;
  padding: 0 40px;
}

/* ----- Heading (Service / サービス) — homepage-style char reveal ----- */
.svc__heading {
  position: relative;
  display: inline-block;
  margin: 0 0 52px;
  min-height: 104px;
}
.svc__heading-en {
  display: block;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 80px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(65, 99, 136, 0.2); /* Figma fill_XIO7HO */
  white-space: nowrap;
}
.svc__heading-jp {
  position: absolute;
  left: 6px;
  bottom: -4px;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: #6D6D6D; /* Figma fill_3M08F8 */
}
/* Per-char mask reveal (mirrors homepage .{section}__heading) */
.svc__heading[data-reveal] { opacity: 1; transform: none; transition: none; }
.svc__heading .heading-char {
  display: inline-block;
  transform: translateY(110%);
}
.svc__heading.is-visible .heading-char {
  animation: svc-char-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes svc-char-reveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .svc__heading .heading-char { transform: none; animation: none !important; }
}

/* ----- Card grid ----- */
/* Heading sits at container-left; the grid is indented inward (per Figma) */
.svc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 25px; /* Figma */
  row-gap: 40px;    /* Figma gap */
  margin: 0 56px;   /* inset from the 1240 container */
}
.svc-card {
  position: relative;
  height: 152px; /* Figma */
  cursor: pointer;
  overflow: hidden;
}
/* Photo background — hidden, fades in on hover (Figma fill_D6EXQG: img + 50% white) */
.svc-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.svc-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5); /* white scrim so text stays readable */
}
.svc-card:hover .svc-card__photo,
.svc-card:focus-within .svc-card__photo { opacity: 1; }

/* Broken-frame border (Figma Lines 27–30, #FFFDFD) — extends to a full frame on hover */
.svc-card__edge {
  position: absolute;
  z-index: 1;
  background: #FFFDFD;
  transition: left 0.4s ease, right 0.4s ease, top 0.4s ease, bottom 0.4s ease, background-color 0.4s ease;
}
.svc-card__edge--t { top: 0; left: 12px; right: 12px; height: 1px; }
.svc-card__edge--b { bottom: 0; left: 12px; right: 12px; height: 1px; }
.svc-card__edge--l { left: 0; top: 11px; bottom: 11px; width: 1px; }
.svc-card__edge--r { right: 0; top: 11px; bottom: 11px; width: 1px; }
/* Hover: corners close up → full frame (like homepage .detail-btn) */
.svc-card:hover .svc-card__edge--t,
.svc-card:hover .svc-card__edge--b { left: 0; right: 0; }
.svc-card:hover .svc-card__edge--l,
.svc-card:hover .svc-card__edge--r { top: 0; bottom: 0; }
/* .svc-card:hover .svc-card__edge { background: #464343; } */
@media (prefers-reduced-motion: reduce) {
  .svc-card__edge { transition: background-color 0.3s ease; }
}

/* Simple small number at the top-center of the card */
.svc-card__num {
  position: absolute;
  z-index: 1;
  top: 0;
  left: -2px;
  font-family: "Nova Cut", serif;
  font-size: 150px; /* Figma style_YG5Z43 */
  line-height: 1;
  color: rgba(0, 69, 124, 0.1); /* Figma fill_N9CDC9 */
  pointer-events: none;
  transition: color 0.4s ease;
}
.svc-card:hover .svc-card__num { color: rgba(0, 69, 124, 0.2); } /* Figma fill_DGY2RU */

/* Title + en + arrow */
.svc-card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  text-align: center;
}
.svc-card__title {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 24px; /* Figma style_GL7CIN */
  color: #464343;  /* Figma fill_JH429Y */
  letter-spacing: -0.5px;
  transition: color 0.4s ease;
}
.svc-card:hover .svc-card__title { color: #000; }
.svc-card__en {
  margin: 0;
  font-family: "Padyakke Expanded One", var(--font-jp-serif);
  font-weight: 400;
  font-size: 18px; /* Figma style_LHXPMS */
  letter-spacing: 0.02em;
  color: #000;
}
/* Arrow: default = ✦ (left) ──── ⌐ (top-only head, right).
   Hover  = ──── ✦ (star slides to the right, head fades), color darkens. */
.svc-card__arrow {
  position: relative;
  width: 158px;
  max-width: 62%;
  height: 16px;
  color: #FFFDFD;
  transition: color 0.4s ease;
}
.svc-card:hover .svc-card__arrow { color: #464343; }
.svc-card__arrow-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
}
/* Top-only arrowhead at the right end (just the upper stroke of ">") */
.svc-card__arrow-head {
  position: absolute;
  right: -1px;
  top: 1px;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: translateY(-50%) rotate(30deg);
  transition: opacity 0.3s ease;
}
.svc-card:hover .svc-card__arrow-head { opacity: 0; }
/* Sparkle — left by default, slides to the right end on hover */
.svc-card__arrow-star {
  position: absolute;
  left: -10px;
  top: calc(50% + 1px);
  width: 15px;
  height: 16px;
  transform: translate(0, -50%);
  transition: left 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card__arrow-star svg { display: block; width: 100%; height: 100%; }
.svc-card:hover .svc-card__arrow-star {
  left: calc(100% + 10px);
  transform: translate(-100%, -50%);
}
@media (prefers-reduced-motion: reduce) {
  .svc-card__arrow-star { transition: none; }
}

/* =============================================
   Service — Tablet (≤ 1200px)
   ============================================= */
@media (max-width: 1200px) {
  .svc { padding: 80px 0 90px; }
  .svc__inner { padding: 0 48px; }
  .svc__grid { column-gap: 20px; margin: 0; }
  .svc-card { height: 132px; }
  .svc-card__num { font-size: 120px; }
  .svc-card__title { font-size: 20px; }
  .svc-card__en { font-size: 16px; }
}

/* =============================================
   Service — SP (< 768px)  —  Figma node 4142:912
   2-column compact grid, no hover photo.
   ============================================= */
@media (max-width: 767px) {
  .svc { padding: 48px 0 56px; }
  .svc__inner { max-width: 420px; padding: 0 20px; }
  .svc__deco { width: 280px; height: 320px; right: -20px; }

  .svc__heading { margin-bottom: 28px; min-height: 68px; }
  .svc__heading-en { font-size: 50px; }   /* Figma SP style_2YQOOW */
  .svc__heading-jp { font-size: 20px; bottom: -2px; } /* Figma SP style_EEUPNE */

  .svc__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 14px;
    row-gap: 14px;
  }
  .svc-card { height: 88px; }
  .svc-card__num { font-size: 70px; top: 5px; left: -1px; } /* Figma SP style_7NXO48 */
  .svc-card__title { font-size: 12px; font-weight: 600; }    /* Figma SP style_ANS22F */
  .svc-card__en { font-size: 12px; }                          /* Figma SP style_WNKY8C */
  .svc-card__arrow { width: 96px; }
  .svc-card__edge--t, .svc-card__edge--b { left: 8px; right: 8px; }
  .svc-card__edge--l, .svc-card__edge--r { top: 8px; bottom: 8px; }
}

/* =============================================
   事例紹介 (Case)  —  Figma node 4141:23207 (PC) / 4141:22747 (SP)
   Light theme, 3-column white cards on #F5F9FF, with the same
   broken-frame button + animated slash/star decorations as the
   homepage Case section.
   ============================================= */
.fcase {
  position: relative;
  overflow: hidden;
  background: #F5F9FF; /* Figma fill */
  padding: 100px 40px;
}
.fcase__inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* Header row: heading (left) + list button (right) */
.fcase__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.fcase__heading {
  position: relative;
  min-height: 104px;
}
.fcase__heading-en {
  position: absolute;
  top: -16px;
  left: -16px;
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 100px; /* Figma CASE */
  line-height: 1;
  color: rgba(65, 99, 136, 0.1); /* Figma */
  white-space: nowrap;
  pointer-events: none;
}
.fcase__heading-jp {
  position: relative;
  display: inline-block;
  margin-top: 38px;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 35px; /* Figma */
  letter-spacing: 0.15em;
  color: #868181; /* Figma */
}
/* Per-char mask reveal (same mechanism as homepage / Service heading) */
.fcase__heading[data-reveal] { opacity: 1; transform: none; transition: none; }
.fcase__heading .heading-char { display: inline-block; transform: translateY(110%); }
.fcase__heading.is-visible .heading-char {
  animation: svc-char-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ----- Cards row ----- */
.fcase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}
.fcase-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* White card panel (Figma EL-66f7fd95: column, padding 20, gap 24) */
.fcase-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  flex: 1;                /* fill the item height; flexbox subtracts the margin (no overflow) */
  padding: 20px;
  background-color: #ffff;
}
.fcase-card__image {
  width: 100%;
  aspect-ratio: 300 / 154; /* Figma image */
  background: url("../assets/img/case.webp") center / cover no-repeat;
  align-self: stretch;
}
.fcase-card__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 91px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #498ABF; /* Figma */
  color: #ffffff;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 14px;
}
.fcase-card__body {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.fcase-card__title {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 18px; /* Figma */
  line-height: 1.6;
  color: #323232;
}
.fcase-card__client {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 16px; /* Figma */
  color: #727272;
}
.fcase-card__btn { align-self: stretch; width: 100%; }
/* Card button spans the card width → top/bottom edges scale instead of fixed 251px */
.fcase-card__btn .detail-btn__edge--t,
.fcase-card__btn .detail-btn__edge--b { left: 10px; right: 10px; width: auto; }
.fcase-card__btn:hover .detail-btn__edge--t,
.fcase-card__btn:hover .detail-btn__edge--b { left: 0; right: 0; width: auto; }

/* ===== Decorations: slash corners + lines + stars (animated like homepage) ===== */
.fcase-item .fcase-deco {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.fcase-deco--tline,
.fcase-deco--bline {
  left: 0;
  right: 0;
  height: 1px;
  background: #A0A8B3;
}
.fcase-deco--tline {
  top: 0;
}
.fcase-deco--bline {
  bottom: 0;
}
.fcase-deco--tl,
.fcase-deco--br {
  width: 30px;
  height: 30px;
}
.fcase-deco--tl { top: -14px; left: -15px; }
.fcase-deco--br { bottom: -14px; right: -15px; }
.fcase-deco--tl::before,
.fcase-deco--br::before {
  content: "";
  position: absolute;
  inset: 0;
  /* diagonal "\" slash */
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    #A0A8B3 calc(50% - 0.5px),
    #A0A8B3 calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}
/* Stars — slossy-icon recoloured grey via mask */
.fcase-deco--star-tr,
.fcase-deco--star-bl {
  width: 15px;
  height: 15px;
  background-color: #A0A8B3;
  -webkit-mask: url("../assets/img/slossy-icon.svg") center / contain no-repeat;
          mask: url("../assets/img/slossy-icon.svg") center / contain no-repeat;
}
.fcase-deco--star-tr { top: -7px; right: -9px; }
.fcase-deco--star-bl { bottom: -7px; left: -9px; }

/* Reveal animation (mirror homepage): slashes rotate in, lines draw, stars pop */
.fcase-deco--tl,
.fcase-deco--br {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.5s ease 0.15s;
}
.fcase-item[data-reveal]:not(.is-visible) .fcase-deco--tl,
.fcase-item[data-reveal]:not(.is-visible) .fcase-deco--br {
  transform: rotate(-180deg) scale(0.3);
  opacity: 0;
}
.fcase-deco--tline { transform-origin: left center; transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.35s; }
.fcase-deco--bline { transform-origin: right center; transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.35s; }
.fcase-item[data-reveal]:not(.is-visible) .fcase-deco--tline,
.fcase-item[data-reveal]:not(.is-visible) .fcase-deco--bline { transform: scaleX(0); }
.fcase-deco--star-tr,
.fcase-deco--star-bl {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, opacity 0.5s ease 0.6s;
}
.fcase-item[data-reveal]:not(.is-visible) .fcase-deco--star-tr,
.fcase-item[data-reveal]:not(.is-visible) .fcase-deco--star-bl {
  transform: rotate(-180deg) scale(0);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .fcase-deco--tl, .fcase-deco--br, .fcase-deco--tline, .fcase-deco--bline,
  .fcase-deco--star-tr, .fcase-deco--star-bl { transition: none; }
}

/* =============================================
   detail-btn (272×60) — ported from homepage: broken frame that
   closes on hover, with a bottom-left accent that extends full-width.
   ============================================= */
.detail-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 272px;
  height: 60px;
  color: #4C4848;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  background: transparent;
}
.detail-btn__label { position: relative; z-index: 1; }
.detail-btn__edge {
  position: absolute;
  background: rgba(76, 72, 72, 0.7);
  transition: left 0.35s ease, right 0.35s ease, top 0.35s ease, bottom 0.35s ease, width 0.35s ease, height 0.35s ease;
}
.detail-btn__edge--t { left: 10.07px; top: 0; width: 251.83px; height: 1px; }
.detail-btn__edge--b { left: 10.07px; bottom: 0; width: 251.83px; height: 1px; }
.detail-btn__edge--l { left: 0; top: 10px; width: 1px; height: 40px; }
.detail-btn__edge--r { right: 0; top: 10px; width: 1px; height: 40px; }
.detail-btn:hover .detail-btn__edge--t,
.detail-btn:hover .detail-btn__edge--b { left: 0; width: 100%; }
.detail-btn:hover .detail-btn__edge--l,
.detail-btn:hover .detail-btn__edge--r { top: 0; height: 100%; }
.detail-btn__accent {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 70px;
  height: 4px;
  background: #0340A4;
  transition: width 0.35s ease, left 0.35s ease;
}
.detail-btn__accent.detail-btn__accent--highlight {
  background: #2CA5A1;
}
.detail-btn:hover .detail-btn__accent { left: 0; width: 100%; }

/* Top list button "事業一覧を見る" — dark text, teal accent */
.fcase__btn--list { color: #4C4848; flex-shrink: 0; }
.fcase__btn--list .detail-btn__accent { background: #2CA5A1; }
/* Card button "詳しく見る" — grey text/border, blue accent.
   width:100% here (declared after .detail-btn) overrides the fixed 272px so the
   button shrinks with the card — otherwise it forces a min card width and overflows. */
.fcase-card__btn { color: #A0A8B3; margin: auto; }
.fcase-card__btn .detail-btn__edge { background: #A0A8B3; }
.fcase-card__btn .detail-btn__accent { background: #0340A4; }
/* Bottom SP button — hidden on PC */
.fcase__btn--sp { display: none; }

/* =============================================
   Case — Tablet (≤ 1200px)
   ============================================= */
@media (max-width: 1200px) {
  .fcase { padding: 80px 48px; }
  .fcase__list { gap: 32px; }
  .fcase__heading-en { font-size: 70px; }
  .fcase__heading-jp { font-size: 28px; }
}

/* =============================================
   Case — SP (< 768px)  —  Figma node 4141:22747
   1-column stack, top button hidden, bottom "事例一覧を見る" shown.
   ============================================= */
@media (max-width: 767px) {
  .fcase { padding: 48px 24px 56px; }
  .fcase__head { margin-bottom: 24px; }
  .fcase__heading { min-height: 64px; }
  .fcase__heading-en { font-size: 50px; top: -10px; left: -8px; }
  .fcase__heading-jp { font-size: 20px; margin-top: 24px; }
  .fcase__btn--list { display: none; } /* hidden on SP */

  .fcase__list {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 320px;
    margin: 0 auto;
  }
  .fcase-card {
    padding: 20px;
  }
  .fcase__btn--sp {
    display: flex;
    margin: 40px auto 0;
  }
  .fcase__btn--sp .detail-btn__accent { background: #2CA5A1; }
}

/* =============================================
   Tablet refinements (768–1024)
   ============================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Case: 3 cards are too narrow here → 2 columns (3rd wraps below) */
  .fcase__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
    margin: 0;
  }
  /* Promise: smaller photos so the text has more room */
  .promise-row { gap: 40px; }
  .promise-row__media { width: 36%; flex-shrink: 0; }
}

/* =============================================
   More Contents - shared block (message / office)
   Markup stays per-page (each page links a different pair of sub-pages),
   but the styling is shared here.
   ============================================= */
.mc { background: #ffffff; padding: 0 100px 110px; }
.mc__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding-top: 100px;
  border-top: 1px solid #C0C0C0;
}
.mc__head { flex-shrink: 0; }
.mc__label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  font-family: var(--font-jp-serif);
  font-size: 18px;
  color: #323232;
}
.mc__label-star {
  width: 21px;
  height: 20px;
  flex-shrink: 0;
  background-color: #545353;
  -webkit-mask: url("../assets/img/slossy-icon.svg") center / contain no-repeat;
          mask: url("../assets/img/slossy-icon.svg") center / contain no-repeat;
}
.mc__title {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.1;
  color: #323232;
}
.mc__cards { display: flex; flex: 1; gap: 51px; }
.mc-card { flex: 1; display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.mc-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 290 / 179;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mc-card:hover .mc-card__photo { transform: scale(1.03); }
.mc-card__foot { display: flex; align-items: center; gap: 16px; }
.mc-card__name {
  flex-shrink: 0;
  font-family: var(--font-jp-serif);
  font-size: 20px;
  color: #323232;
  white-space: nowrap;
}
.mc-arrow { position: relative; flex: 1; min-width: 70px; height: 16px; color: #323232; }
.mc-arrow__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.mc-arrow__head {
  position: absolute; right: -1px; top: 1px; width: 14px; height: 1px;
  background: currentColor; transform-origin: left center;
  transform: translateY(-50%) rotate(30deg); transition: opacity 0.3s ease;
}
.mc-card:hover .mc-arrow__head { opacity: 0; }
.mc-arrow__star {
  position: absolute; left: -10px; top: calc(50% + 1px); width: 15px; height: 16px;
  color: #323232; transform: translate(0, -50%);
  transition: left 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.mc-arrow__star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.mc-card:hover .mc-arrow__star { left: calc(100% + 10px); transform: translate(-100%, -50%); }
@media (prefers-reduced-motion: reduce) { .mc-arrow__star { transition: none; } }
@media (max-width: 1024px) {
  .mc { padding: 0 48px 90px; }
  .mc__inner { flex-direction: column; gap: 40px; padding-top: 64px; }
  .mc__cards { width: 100%; }
}
@media (max-width: 767px) {
  .mc { padding: 0 20px 56px; }
  .mc__inner { padding-top: 48px; gap: 28px; }
  .mc__title { font-size: 34px; }
  .mc__cards { gap: 16px; }
  .mc-card { gap: 10px; }
  .mc-card__name { font-size: 15px; }
  .mc-arrow { min-width: 24px; }
}

/* =============================================
   Service list hover — crossfade layer inside .service__image
   (layer element injected by js/service-hover.js)
   ============================================= */
.service__image { position: relative; overflow: hidden; }
.service__image-fade {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .service__image-fade { transition: none; }
}
