:root {
    --green: #2ecc71;
    --dark: #1a3a2e;
    --teal: #00b894;
    --accent: #27ae60;
  }

  html {
    scroll-behavior: smooth;
  }

  * {
    box-sizing: border-box;
  }

  body {
    color: #222;
    overflow-x: hidden;
  }

  p {
    font-size: 18px;
  }

  #service-flow-chart div {
    font-size: 20px;
  }

  #contact-form label {
    font-size: 16px;
  }

  .kiwi-maru-regular {
    font-family: "Kiwi Maru", serif;
    font-weight: 700;
    color: #B8C8E6;
    text-shadow: 1px 2px 0 #9AA0A4;
  }


  .tab-btn {
    flex: 1;
    height: 34px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 14px;
    letter-spacing: .03em;
    font-weight: 400;
    border-bottom: 3px solid #888;
    transition: all .2s ease;
  }

  .tab-btn.active {
    color: #0f6e56;
    font-weight: 900;
    border-bottom: 3px solid #0f6e56;
    background: #fff;
  }

  #floating-nav {
    display: none;
  }

  .link-arrow {
      display: inline-flex;
      align-items: center;
  }

  .link-arrow::after {
      content: "›";
      margin-left: 0.6rem;
      font-size: 1.4em;
      font-weight: 300;
      display: inline-block;
      transition: transform 0.3s ease;
  }

  .link-arrow:hover::after {
      transform: translateX(4px);
  }

  /* wp dashboard */
  .wp-content h2 {
      font-size: 1.875rem;
      line-height: 1.3;
      font-weight: 700;
      color: #111827;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
  }

  .wp-content h3 {
      font-size: 1.5rem;
      line-height: 1.4;
      font-weight: 700;
      color: #111827;
      margin-top: 2rem;
      margin-bottom: 0.75rem;
  }

  .wp-content p {
      margin-bottom: 1rem;
      line-height: 1.8;
  }

  .wp-content strong {
      font-weight: 700;
  }

  .wp-content ul {
      list-style-type: disc;
      padding-left: 1.5rem;
      margin-top: 1rem;
      margin-bottom: 1rem;
  }

  .wp-content ol {
      list-style-type: decimal;
      padding-left: 1.5rem;
      margin-top: 1rem;
      margin-bottom: 1rem;
  }

  .wp-content li {
      margin-bottom: 0.5rem;
  }

  .wp-content a {
      text-decoration: underline;
  }

  .wp-content blockquote {
      border-left: 4px solid #d1d5db;
      padding-left: 1rem;
      margin: 1.5rem 0;
      color: #4b5563;
  }
  /* header */
  @media (min-width: 1025px) {

    #company-profile-img,
    #company-profile-mm-img {
      /* Black & white by default */
      filter: grayscale(100%);
      transition: filter 0.4s ease, transform 0.4s ease;
    }

    #company-profile-img:hover,
    #company-profile-mm-img:hover {
      filter: grayscale(0%);
      transform: scale(1.02);
      z-index: 2;
      position: relative;
    }
  }


  .active-item {
    background-color: #f0fdf4;
  }

  .industry-row .icon-active {
    display: none;
  }

  .industry-row.active-item .icon-default {
    display: none;
  }

  .industry-row.active-item .icon-active {
    display: block;
  }


  /* optional: description also stronger when active */
  .industry-row.active-item p {
    font-size: 14px;
    color: #374151;
  }

  /* default (inactive) title color */
  .industry-row h4 {
    color: #656970;
    /* Tailwind gray-400 */
    transition: all 0.3s ease;
  }

  /* active title */
  .industry-row.active-item h4 {
    color: #111827;
    /* gray-900 */
    font-size: 30px;
    font-weight: 800;
  }

  .industry-row p {
    color: #D1D5DB;
    /* gray-300 */
    transition: all 0.3s ease;
  }

  .industry-row.active-item p {
    color: #374151;
    /* gray-700 */
  }

  /* On mobile, the icon sits on the RIGHT (order-last) instead of the left.
  Flip horizontally so the arrows point outward (right) like in the mockup. */
  @media (max-width: 1023px) {

    .industry-row .icon-default,
    .industry-row .icon-active {
      transform: scaleX(-1);
    }
  }

  #floating-nav {
    display: none;
  }

  /* Show only on mouse-driven desktops. (hover: hover) + (pointer: fine) excludes
  touch tablets like iPad Mini/Pro in landscape, even when their width is >= 1025px. */
  @media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    #floating-nav {
      display: block;
    }
  }

  /* body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  h2 {
    margin: 15px;
  } */


  #map {
    height: 360px;
    width: 100%;
    background: white;
    margin-right: 300px;
  }

  .leaflet-control-attribution {
    display: none;
  }

  .controls {
    margin: 15px;
  }

  input {
    padding: 8px;
    font-size: 16px;
    width: 120px;
  }

  button {
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
  }

  .mock-section {
    background: #1a1a1a;
    padding: 48px 32px;
    font-family: Georgia, serif;
    position: relative;
    overflow: hidden;
  }
  .mock-bg-heading {
    font-family: Georgia, serif;
    font-weight: 900;
    font-size: 64px;
    color: #B0B0B0;
    opacity: 0.18;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0 0 -16px 0;
  }
  .mock-ja-heading {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    margin: 0 0 8px 0;
  }
  .mock-desc {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 28px 0;
    line-height: 1.6;
  }
  .wave-deco {
    position: absolute;
    bottom: 0; left: 0;
    width: 200px; height: 80px;
    opacity: 0.08;
  }

  .cal-outer {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
  }

  .cal-card {
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
  }
  .cal-header-bar {
    background: #FBBF24;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .cal-nav-btn {
    background: rgba(0,0,0,0.18);
    border: none;
    color: #1a1a1a;
    border-radius: 4px;
    width: 28px; height: 28px;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .cal-month-label {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1a1a1a;
  }
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
  }
  .cal-day-hdr {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 7px 2px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
  }
  .cal-day-hdr.sun { color: #f87171; }
  .cal-day-hdr.sat { color: #60a5fa; }

  .cal-cell {
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    padding: 8px 2px;
    background: rgba(255,255,255,0.025);
    color: rgba(255,255,255,0.75);
  }
  .cal-cell.dim { color: rgba(255,255,255,0.2); }
  .cal-cell.today { background: #FBBF24; color: #1a1a1a; font-weight: 700; border-radius: 4px; }
  .cal-cell.holiday { background: rgba(251,191,36,0.18); color: #FBBF24; font-weight: 600; cursor: pointer; }
  .cal-cell.sun-col { color: #f87171; }
  .cal-cell.sat-col { color: #60a5fa; }

  .holidays-panel {
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 16px;
  }
  .hol-panel-title {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FBBF24;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 12px 0;
  }
  .hol-item {
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
  }
  .hol-item:last-child { border-bottom: none; }
  .hol-date-lbl {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 2px 0;
  }
  .hol-name-lbl {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #fff;
    margin: 0;
  }
  .dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #FBBF24;
    margin-right: 6px;
    vertical-align: middle;
  }

  /* ── SP only (max-width: 1023px matches your lg: breakpoint) ── */
  /* ── SP only ── */
  @media (max-width: 1023px) {

      /* Stack calendar + holidays panel vertically */
      .cal-outer {
      grid-template-columns: 1fr;
      gap: 16px;
      }

      /* Larger tap targets on nav buttons */
      .cal-nav-btn {
      width: 34px;
      height: 34px;
      font-size: 18px;
      touch-action: manipulation;
      }

      /* Tighter cells — 7 columns in narrow screen */
      .cal-cell {
      font-size: 12px;
      padding: 8px 1px;
      min-height: 34px;
      }

      /* Tooltips useless on touch — panel already lists holiday names */
      .cal-tooltip {
      display: none;
      }

      .hol-legend-block {
      display: none;
      }

      /* Holiday items: 2-column card grid instead of vertical list */
      .hol-items-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 4px;
      }

      .hol-item {
      padding: 8px;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 6px;
      border: 0.5px solid rgba(255, 255, 255, 0.07);
      border-bottom: none; /* remove PC divider line */
      }

      /* Legend: 2-column grid */
      .hol-legend-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 12px;
      }
  }

  /* PC: legend stays vertical (default, no media query needed) */
  .hol-legend-inner {
      display: flex;
      flex-direction: column;
      gap: 6px;
  }

  .hol-legend-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.55);
      font-family: Arial, sans-serif;
  }
/* footer */
footer > div > a,
footer a:not(.nav-link) {
  position: static !important;
  overflow: visible !important;
}

footer a:not(.nav-link)::after,
footer a:not(.nav-link):hover {
  content: none !important;
}
.main-nav a.nav-link {
  position: relative;
  overflow: hidden;
  transition: color .35s cubic-bezier(.4, 0, .2, 1);
}

.main-nav a.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4472C4;
  transform: translateX(-101%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.main-nav a.nav-link:hover {
  color: #4472C4;
}

.main-nav a.nav-link:hover::after {
  transform: translateX(0);
}

/* about us */

      /* ── Section cards ── */
      .section-card {
        background: #fff;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
        margin-bottom: 32px;
        overflow: hidden;
        border: 1px solid #f0f0f0;
        scroll-margin-top: 100px;
        animation: fadeUp 0.5s ease-out both;
      }
      @media (max-width: 767px) {
        .section-card {
          border-radius: 0;
        }
      }

      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(16px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .section-card:nth-child(2) {
        animation-delay: 0.1s;
      }
      .section-card:nth-child(3) {
        animation-delay: 0.2s;
      }
      .section-card:nth-child(4) {
        animation-delay: 0.3s;
      }
      .section-card:nth-child(5) {
        animation-delay: 0.4s;
      }
      .section-card:nth-child(6) {
        animation-delay: 0.5s;
      }

      /* ── Section header band ── */
      .section-header {
        background: #4473C5;
        position: relative;
        padding: 5px 10px;
        overflow: hidden;
      }
      .section-header::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.06);
        transform: skewX(-20deg) translateX(60%);
        pointer-events: none;
      }
      .section-header h2 {
        font-weight: 800;
        font-size: 1.8rem;
        color: #fff;
        margin: 0;
        position: relative;
        z-index: 1;
      }
      .section-header .en-sub {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.65);
        margin-top: 2px;
        position: relative;
        z-index: 1;
      }

      /* ── Profile table ── */
      .profile-row {
        display: flex;
        border-bottom: 1px solid #f0f7f4;
        padding: 8px 0;
        align-items: flex-start;
      }
      .profile-row:last-child {
        border-bottom: none;
      }
      .profile-label {
        font-weight: 700;
        color: rgb(50, 40, 44);
        min-width: 200px;
        padding-right: 24px;
        flex-shrink: 0;
        font-size: 18px;
        line-height: 32px;
      }
      .profile-value {
        color: rgb(50, 40, 44);
        line-height: 32px;
        font-size: 16px;
      }

      /* ── Timeline ── */
      .timeline-item {
        display: flex;
        border-bottom: 1px solid #f0f7f4;
        padding: 16px 0;
      }
      .timeline-item:last-child {
        border-bottom: none;
      }
      .timeline-date {
        min-width: 150px;
        font-weight: 700;
        color: #0f6e56;
        font-size: 0.9rem;
        flex-shrink: 0;
        padding-right: 24px;
      }
      .timeline-event {
        color: #444;
        font-size: 0.9rem;
        line-height: 1.7;
      }

      /* ── Activity cards ── */
      .activity-card {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e8f5ee;
        transition:
          transform 0.25s,
          box-shadow 0.25s;
      }
      .activity-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(15, 110, 86, 0.12);
      }
      .activity-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
      }
      .activity-tag {
        display: inline-block;
        background: linear-gradient(135deg, #2ecc71, #0f6e56);
        color: #fff;
        font-size: 0.75rem;
        padding: 4px 12px;
        border-radius: 20px;
        margin-top: 12px;
        font-weight: 600;
      }

      /* ── Media cards ── */
      .media-card {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e8f5ee;
        transition:
          transform 0.25s,
          box-shadow 0.25s;
      }
      .media-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(15, 110, 86, 0.1);
      }
      .media-header-band {
        background: linear-gradient(135deg, #0f6e56, #2ecc71);
        padding: 20px 24px;
      }
      .media-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #0f6e56;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.88rem;
        transition: gap 0.2s;
      }
      .media-link:hover {
        gap: 12px;
      }
      .media-link::after {
        content: "→";
      }

      /* ── Group company list ── */
      .group-block {
        background: #f8fdf9;
        border-left: 4px solid #2ecc71;
        border-radius: 0 8px 8px 0;
        padding: 16px 20px;
        margin-bottom: 16px;
      }
      .group-block strong {
        color: #0f6e56;
      }
      .group-block ul {
        margin: 8px 0 0 0;
        padding-left: 0;
        list-style: none;
      }
      .group-block ul li {
        padding: 4px 0;
        color: #444;
        font-size: 0.9rem;
      }
      .group-block ul li::before {
        content: "◆ ";
        color: #2ecc71;
        font-size: 0.7rem;
      }
      .group-block ul ul {
        padding-left: 16px;
      }
      .group-block ul ul li::before {
        content: "◇ ";
      }

      /* ── President quote ── */
      .president-quote {
        font-size: 1rem;
        line-height: 1.9;
        color: #444;
        padding-left: 20px;
        border-left: 4px solid #2ecc71;
        position: relative;
      }

      /* ── Sticky sidebar ── */
      .sidebar-sticky {
        position: sticky;
        top: 100px;
      }

      #floating-nav {
        display: none;
      }

    /* Show only on mouse-driven desktops. (hover: hover) + (pointer: fine) excludes
    touch tablets like iPad Mini/Pro in landscape, even when their width is >= 1025px. */
    @media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
      #floating-nav {
        display: block;
      }
    }

      /* ── Accordion chevron (hidden on desktop) ── */
      .accordion-chevron {
        display: none;
      }

      /* ── Responsive ── */
      @media (max-width: 768px) {
        .main-layout {
          flex-direction: column;
        }
        .sidebar-wrap {
          display: none;
        }
        .section-content {
          padding: 8px;
        }
        .profile-row {
          flex-direction: column;
          gap: 4px;
        }
        .profile-label {
          min-width: auto;
        }
        .timeline-item {
          flex-direction: column;
          gap: 6px;
        }
        .timeline-date {
          min-width: auto;
        }

        /* ── Company History accordion (mobile only) ── */
        #company-history .section-header {
          cursor: pointer;
          user-select: none;
          padding-right: 60px;
        }
        #company-history .accordion-chevron {
          display: block;
          position: absolute;
          right: 24px;
          top: 50%;
          transform: translateY(-50%);
          width: 24px;
          height: 24px;
          color: #fff;
          z-index: 2;
          transition: transform 0.3s ease;
        }
        #company-history.is-open .accordion-chevron {
          transform: translateY(-50%) rotate(180deg);
        }
        #company-history .section-content {
          display: none;
        }
        #company-history.is-open .section-content {
          display: block;
        }
      }

      html {
        scroll-behavior: smooth;
      }

    /* Show only on mouse-driven desktops. (hover: hover) + (pointer: fine) excludes
    touch tablets like iPad Mini/Pro in landscape, even when their width is >= 1025px. */
      @media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
        #floating-nav {
          display: block;
        }
      }


      /* service page start */
      
  /* =============================================
     SERVICE CARDS (Desktop)
     ============================================= */
  .service-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    height: 324px;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
  }

  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .3s ease;
  }

  .service-card:hover::before {
    opacity: 1;
  }
  .service-card:hover p {
    color: #fff;
  }

  .service-card.card-1::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%),
      url('../images/ssw/A_教育.png');
  }

  .service-card.card-2::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%),
      url('../images/ssw/B_教育.png');
  }

  .service-card.card-3::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%),
      url('../images/ssw/C_教育.png');
  }

  .icon-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .service-card:hover .icon-default {
    opacity: 0;
  }

  .service-card:hover .icon-hover {
    opacity: 1;
  }

  .service-card.consulting-card-1::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 120%),
      url('../images/services/consulting/A_企業.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
  }

  .service-card.consulting-card-2::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 120%),
      url('../images/services/consulting/B_従業員.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
  }

  .service-card.consulting-card-3::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 120%),
      url('../images/services/consulting/C_健康経営.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
  }

  .service-card.it-card-1::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%),
      url('../images/services/it/A_ラーニング_Top.png');
  }

  .service-card.it-card-2::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%),
      url('../images/services/it/B_ラーニング_ひらがな.png');
  }

  .service-card.it-card-3::before {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%),
      url('../images/services/it/C_ラーニング_Quiz.png');
  }

  .service-card img,
  .service-card p {
    position: relative;
    z-index: 2;
  }

  .service-card p {
    z-index: 2;
    transition: color 0.3s ease;
  }

  .service-card:hover p {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  }


  /* =============================================
     GALLERY GRID
     ============================================= */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 120px;
    grid-auto-flow: dense;
    gap: 0;
  }

  .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
  }

  .gallery-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    z-index: 2;
    position: relative;
  }

  .gallery-grid img {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-grid img.horizontal {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-grid img.vertical {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-grid img.large {
    grid-column: span 2;
    grid-row: span 2;
  }

  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: 90px;
    }
    /* Reset span classes to fit 3-col mobile grid */
    .gallery-grid img.horizontal {
      grid-column: span 2;
      grid-row: span 1;
    }
    .gallery-grid img.vertical {
      grid-column: span 1;
      grid-row: span 2;
    }
    .gallery-grid img.large {
      grid-column: span 2;
      grid-row: span 2;
    }
    /* Always show color on mobile (no hover available) */
    .gallery-grid img {
      filter: grayscale(0%);
    }
  }


  /* =============================================
     NAV LINK BUTTON
     ============================================= */
  button.nav-link  {
    position: relative;
    overflow: hidden;
    transition: color .35s cubic-bezier(.4, 0, .2, 1);
  }

  button.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4472C4;
    transform: translateX(-101%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  }

  button.nav-link:hover {
    color: #4472C4;
  }

  button.nav-link:hover::after {
    transform: translateX(0);
  }


  /* =============================================
     TAB BUTTON BASE (shared desktop + mobile)
     ============================================= */
  .tab-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #888;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
    white-space: nowrap;
  }

  .tab-btn.active {
    color: #4472C4;
    border-bottom-color: #4472C4;
    font-weight: 700;
  }

  .tab-btn:hover {
    color: #4472C4;
  }


  /* =============================================
     SP (MOBILE) OVERRIDES — max-width: 768px
     ============================================= */
  @media (max-width: 768px) {

    /* --- Hero Section --- */
    #home {
      min-height: 280px !important;
      background-position: center center !important;
      padding: 0 !important;
    }

    #home > .relative.z-10 {
      padding: 100px 20px 32px !important;
      text-align: center !important;
    }

    /* #hero-bg-text {
      font-size: 22px !important;
      margin-bottom: 8px !important;
    } */

    /* #hero-headline {
      font-size: 22px !important;
      margin-bottom: 8px !important;
    } */

    /* #hero-sub {
      font-size: 14px !important;
    } */

    /* --- Section Heading "Our Services" large bg text --- */
    #services .font-black.text-\[88px\] {
      font-size: 40px !important;
    }

    /* --- Tab Bar --- */
    #services .max-w-screen-xl > div[style*="678px"] {
      width: 100% !important;
      padding: 0 16px !important;
      box-sizing: border-box;
    }

    .tab-btn {
      font-size: 11px !important;
      padding: 10px 4px !important;
    }

    /* --- Content padding --- */
    #content {
      padding: 16px !important;
    }

    /* --- Education / Consulting / IT section large BG text --- */
    .content-panel .font-black {
      font-size: 24px !important;
    }

    /* --- Education image cards (top 3 full-bleed cards) --- */
    .content-panel .max-w-6xl.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
      grid-template-columns: 1fr !important;
      gap: 12px !important;
    }

    /* First image row in education (the 3 edu0x cards) */
    #educationOperation .max-w-6xl.grid:first-of-type .relative.rounded-lg {
      height: 200px !important;
    }

    /* --- Description text (desktop: w-1/2 right-aligned) → full width SP --- */
    .max-w-screen-xl.flex.flex-wrap.justify-end > div.w-1\/2 {
      width: 100% !important;
      padding: 0 !important;
    }

    /* --- Strength section heading --- */

    /* --- Service Cards (card-1, card-2, card-3) --- */
    /* On mobile: always show the background image (no hover needed) */
    .service-card {
      height: auto !important;
      min-height: 260px !important;
    }

    .service-card::before {
      opacity: 1 !important;
    }

    .service-card p {
      color: #fff !important;
      text-shadow: 0 2px 6px rgba(0,0,0,0.6) !important;
      font-size: 12px !important;
      padding: 0 12px !important;
    }

    .service-card img {
      filter: brightness(0) invert(1) !important; /* always white icon on mobile */
    }

    /* --- Center image in Consulting / IT (h-[500px] becomes auto) --- */
    .relative.flex.items-stretch.h-\[500px\] {
      height: 220px !important;
    }

    /* --- Consulting / IT background section padding --- */
    .bg-cover.bg-center.py-20 {
      padding-top: 40px !important;
      padding-bottom: 40px !important;
    }

    /* --- Gallery section padding --- */
    .max-w-6xl.px-8.mx-auto.mt-12 {
      padding: 0 8px !important;
      margin-top: 24px !important;
    }

    /* --- Floating nav panel: open downward on SP --- */
    #nav-panel {
      right: auto !important;
      left: auto !important;
      top: 54px !important;
      right: 0 !important;
      width: 190px !important;
    }
  }


  /* =============================================
     EXTRA SMALL — max-width: 480px
     ============================================= */
  @media (max-width: 480px) {
    /* #hero-headline {
      font-size: 18px !important;
    } */

    .tab-btn {
      font-size: 10px !important;
      padding: 10px 2px !important;
    }

    .service-card {
      min-height: 200px !important;
    }

    .service-card p {
      font-size: 11px !important;
    }

    .gallery-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      grid-auto-rows: 80px !important;
    }

    .gallery-grid img.horizontal,
    .gallery-grid img.large {
      grid-column: span 2 !important;
    }

    .gallery-grid img.vertical {
      grid-column: span 1 !important;
      grid-row: span 2 !important;
    }
  }
  
/* Default slides */
.swiper-slide {
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.45s ease;

  transform: scale(0.68);
  opacity: 0.28;
  z-index: 1;
}

/* Side slides */
.swiper-slide-prev,
.swiper-slide-next {
  transform: scale(0.78);
  opacity: 0.5;
  z-index: 5;
}

/* Active center slide */
.swiper-slide-active {
  transform: scale(1.12);
  opacity: 1;
  z-index: 20;
}

.swiper-slide img {
  transition: none;
}
.swiper-slide-active img {
  transform: none;
  filter: none;
}

/* active card orange top accent */
.swiper-slide-active .rounded-2xl {
  border-top: 3px solid #f97316;
  border-radius: 0 0 1rem 1rem;
}

/* pill dots */
.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}
.swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 3px;
  background: #f97316;
}

/* mobile: tighten card width so it doesn't overflow */
@media (max-width: 767px) {
  .elearningSwiper {
    overflow: visible !important;
    padding: 0 10% !important;
    margin: 0 -10% !important;
  }
  
  .elearningSwiper .rounded-2xl {
    width: 100% !important;
  }

  .relative.py-20.overflow-hidden {
    overflow: visible !important;
  }
}

/* Desktop: show all three cards in a static row, no slider effects */
@media (min-width: 1024px) {
  .elearningSwiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transform: none !important;
  }
  .elearningSwiper .swiper-slide {
    width: auto !important;
    flex: 0 0 auto;
    transform: none !important;
    opacity: 1 !important;
  }
  .elearningSwiper .swiper-slide .rounded-2xl {
    border-top: none;
    border-radius: 1rem;
  }
}

/* Show only on mouse-driven desktops. (hover: hover) + (pointer: fine) excludes
   touch tablets like iPad Mini/Pro in landscape, even when their width is >= 1025px. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  #floating-nav {
    display: block;
  }
}
  
.custom-swiper-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: all 0.25s ease;
}

.custom-swiper-btn::after {
  font-size: 16px !important;
  font-weight: bold;
  color: #f97316;
}

.custom-swiper-btn:hover {
  transform: scale(1.08);
  background: #fff;
}

/* Position */
.swiper-button-prev {
  left: -10px !important;
}

.swiper-button-next {
  right: -10px !important;
}

/* Mobile */
@media (max-width: 768px) {
  .custom-swiper-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .custom-swiper-btn::after {
    font-size: 13px !important;
  }

  .swiper-button-prev {
    left: 0 !important;
  }

  .swiper-button-next {
    right: 0 !important;
  }
}
/* end of service page */