
:root {
    --primary: #0068b7;
    --primary-dark: #00467d;
    --primary-light: #e8f1f9;
    --text: #222b35;
    --text-sub: #5b6772;
    --text-mute: #8a95a0;
    --border: #d8dde3;
    --border-soft: #ebeef2;
    --bg: #ffffff;
    --bg-soft: #f4f6f9;
    --bg-blue: #eaf3fa;
    --bg-dark: #1a2733;
    --max: 1240px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--bg);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }

  /* ====== Header ====== */
  .header {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .logo img {
    height: 36px;
    width: auto;
    display: block;
  }
  .gnav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
  }
  .gnav li > a {
    display: block;
    padding: 24px 18px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
  }
  .gnav li > a:hover {
    color: var(--primary);
  }
  .gnav-indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transform: translateX(0);
    transform-origin: left center;
    transition: transform 0.28s ease, width 0.28s ease, opacity 0.2s ease;
    pointer-events: none;
  }
  .gnav .gnav-cta a {
    margin-left: 16px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    border: none;
  }
  .gnav .gnav-cta a:hover { background: var(--primary-dark); border: none; }
  .menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: none;
    background: #fff;
    color: var(--text);
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
  }
  .menu-toggle:hover {
    color: var(--primary);
  }
  .menu-toggle-box {
    width: 20px;
    height: 14px;
    position: relative;
  }
  .menu-toggle-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }
  .menu-toggle-bar:nth-child(1) { top: 0; }
  .menu-toggle-bar:nth-child(2) { top: 6px; }
  .menu-toggle-bar:nth-child(3) { top: 12px; }
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .menu-toggle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }
  body.menu-open .menu-toggle-bar:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }
  body.menu-open .menu-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .menu-toggle-bar:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }
  .mobile-menu {
    position: fixed;
    inset: 73px 0 0;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .mobile-menu-panel {
    min-height: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(16, 34, 52, 0.14);
    backdrop-filter: blur(12px);
    overflow-y: auto;
  }
  .mobile-menu-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px 20px 28px;
  }
  .mobile-menu-list {
    border-top: 1px solid var(--border-soft);
  }
  .mobile-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
  }
  .mobile-menu-list a::after {
    content: "›";
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
  }
  .mobile-menu-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }
  .mobile-menu-ja {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
  }
  .mobile-menu-en {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--primary);
    text-transform: uppercase;
  }
  body.menu-open .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* ====== Hero ====== */
  .hero {
    position: relative;
    background: var(--bg-soft);
    border-bottom: 30px solid var(--primary);
  }
  .hero-image {
    width: 100%;
    min-height: calc(100vh - 103px);
    background: url('/img/hero.jpg') center / cover no-repeat;
    position: relative;
    display: flex;
    overflow: hidden;
  }
  .hero-overlay {
    position: relative;
    width: 100%;
    max-width: var(--max);
    padding: 0 32px;
    z-index: 2;
    margin-top: 10vh;
    margin-left: 10vw;
  }

  .hero h1 {
    font-size: clamp(30px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.55;
    color: white;
    letter-spacing: 0.8rem;
    margin-bottom: -19px;
  }
  /* ====== Section base ====== */
  section { scroll-margin-top: 90px; }
  .container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
  }
  .section-block { padding: 80px 0; }
  .section-block.alt { background: var(--bg-soft); }
  .section-head {
    margin-bottom: 48px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .section-head .section-en {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .section-head .section-en::before {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    background: var(--primary);
  }
  .section-head h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1.4;
  }

  /* ====== Content sections ====== */
  .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .content-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 70, 125, 0.45);
    font-size: 16px;
    letter-spacing: 0.05em;
  }
  .content-text article + article { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
  .content-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    line-height: 1.55;
    position: relative;
  }
  .content-text h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
  }
  .content-text p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.95;
    white-space: pre-line;
  }

  /* Service rows */
  .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .service-row {
    background: #fff;
    border: 1px solid var(--border);
  }
  .service-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  .service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .service-text{
    padding: 24px 16px;
  }
  .service-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.45;
  }
  .service-text p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.85;
  }

  /* Works (clients) */
  #works{
    margin-bottom: 56px;
  }
  .works-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
    row-gap: 6px;
  }
  .works-grid p {
    font-size: 16px;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
  }
  .works-grid p::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 999px;
    transform: translateY(-3px);
  }
  .works-slider {
    width: 100%;
    margin-top: 48px;
    overflow: hidden;
  }
  .works-slider-track {
    display: flex;
    width: max-content;
    gap:10px;
    margin-bottom:48px;
    animation: works-slider-scroll 36s linear infinite;
  }
  .works-slide {
    flex: 0 0 auto;
    width: clamp(280px, 36vw, 520px);
    height: clamp(180px, 24vw, 350px);
    overflow: hidden;
  }
  .works-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @keyframes works-slider-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }


  /* Daily flow - 5-step horizontal timeline (TMM-consistent) */
  .daily-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--border);
    counter-reset: dailystep;
  }
  .daily-flow-step {
    counter-increment: dailystep;
    position: relative;
    padding: 30px 26px 32px;
    border-right: 1px solid var(--border-soft);
  }
  .daily-flow-step:last-child {
    border-right: none;
  }
  .daily-flow-step::before {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--primary);
  }
  .daily-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 60px;
    right: 0;
    width: 9px;
    height: 9px;
    border-top: 1.5px solid var(--primary);
    border-right: 1.5px solid var(--primary);
    transform: translate(50%, -50%) rotate(45deg);
    background: #fff;
    z-index: 2;
  }
  .daily-flow-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.85;
    white-space: normal;
  }

  /* Recruit */
  .recruit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    margin-bottom: 60px;
  }
  .recruit-grid article {
    background: #fff;
    padding: 40px 44px 44px;
  }
  .recruit-grid h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-left: 36px;
    line-height: 1.55;
    position: relative;
  }
  .recruit-grid h3::after {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .recruit-grid p { font-size: 16px; color: var(--text-sub); line-height: 1.95; white-space: pre-line; }

  /* ====== Recruit sub-section ====== */
  .recruit-sub {
    margin-top: 64px;
  }
  .recruit-sub-head {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .recruit-sub-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ====== Formal table ====== */
  .table-block { margin-top: 64px; }
  .table-block h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  table.formal {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
  }
  table.formal th, table.formal td {
    padding: 18px 24px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    line-height: 1.85;
  }
  table.formal th {
    width: 200px;
    background: var(--bg-soft);
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    border-right: 1px solid var(--border);
  }
  table.formal td { color: var(--text); }

  /* ====== Contact band ====== */
  .contact-band {
    background: var(--bg-blue);
    border-bottom: 1px solid var(--border);
    padding: 100px 0 150px;
  }
  .contact-band .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
  }
  .contact-band h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
    letter-spacing: 0.04em;
  }
  .contact-band .section-en {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
  }
  .contact-band .section-en::before {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    background: var(--primary);
  }
  .contact-band p { font-size: 16px; color: var(--text-sub); line-height: 1.85; }
  .contact-buttons { display: flex; gap: 16px; }
  .contact-btn {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: border-color 0.15s, color 0.15s;
  }
  .contact-btn:hover { border-color: var(--primary); color: var(--primary); }
  .contact-btn-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }
  .contact-btn-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--primary);
  }
  .contact-btn-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .contact-btn.primary .contact-btn-icon { color: #fff; }
  .contact-btn .val {
    font-size: 18px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    color: var(--text);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .contact-btn:hover .val { color: var(--primary); }
  .contact-btn .arrow { font-size: 18px; color: var(--primary); }
  .contact-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
  }
  .contact-btn.primary .val { color: #fff; }
  .contact-btn.primary .arrow { color: #fff; }
  .contact-btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
  }
  .contact-btn.primary:hover .val { color: #fff; }

  /* ====== Footer ====== */
  footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 24px;
    font-size: 16px;
  }
  .footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }
  .footer-brand address { font-style: normal; line-height: 1.85; color: rgba(255,255,255,0.65); font-size: 16px; }
  .footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .footer-col ul li { margin-bottom: 10px; }
  .footer-col ul li a {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    transition: color 0.15s;
  }
  .footer-col ul li a:hover { color: #fff; }
  .footer-col ul li a::before {
    content: "›";
    margin-right: 8px;
    color: #5fa8d4;
  }
  .footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
  }
  .footer-bottom .copy {
    font-family: "Inter", sans-serif;
    letter-spacing: 0.08em;
  }

  .sp{ display: none; }

  /* ====== Animations ====== */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes hero-zoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
  }

  /* Hero load */
  .hero-image {
    animation: hero-zoom 1.6s cubic-bezier(0.22, 1, 0.36, 1) both,
               fade-in 1.2s ease-out both;
  }
  .hero h1 {
    animation: fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Image hover zoom */
  .content-img {
    overflow: hidden;
  }
  .content-img img,
  .service-img-wrap img,
  .works-slide img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .content-img:hover img,
  .service-row:hover .service-img-wrap img,
  .works-slide:hover img {
    transform: scale(1.06);
  }

  /* Service row lift */
  .service-row {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }
  .service-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(16, 34, 52, 0.10);
    border-color: var(--primary);
  }

  /* Recruit card hover */
  .recruit-grid article {
    transition: background 0.3s ease;
  }
  .recruit-grid article:hover {
    background: var(--primary-light);
  }

  /* Contact button polish */
  .contact-btn {
    transition: border-color 0.25s ease, color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease;
  }
  .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 104, 183, 0.18);
  }
  .contact-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }
  .contact-btn:hover .arrow {
    transform: translateX(6px);
  }

  /* Header CTA lift */
  .gnav .gnav-cta a {
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .gnav .gnav-cta a:hover {
    transform: translateY(-2px);
  }

  /* Logo hover */
  .logo img {
    transition: opacity 0.2s ease, transform 0.4s ease;
  }
  .logo:hover img {
    opacity: 0.85;
    transform: scale(1.03);
  }

  /* Mobile menu items stagger */
  body.menu-open .mobile-menu-list li {
    animation: fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.menu-open .mobile-menu-list li:nth-child(1) { animation-delay: 0.06s; }
  body.menu-open .mobile-menu-list li:nth-child(2) { animation-delay: 0.12s; }
  body.menu-open .mobile-menu-list li:nth-child(3) { animation-delay: 0.18s; }
  body.menu-open .mobile-menu-list li:nth-child(4) { animation-delay: 0.24s; }
  body.menu-open .mobile-menu-list li:nth-child(5) { animation-delay: 0.30s; }
  body.menu-open .mobile-menu-list li:nth-child(6) { animation-delay: 0.36s; }

  /* Footer link arrow slide */
  .footer-col ul li a {
    display: inline-block;
    transition: color 0.2s ease, transform 0.25s ease;
  }
  .footer-col ul li a:hover {
    transform: translateX(4px);
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
    .reveal {
      opacity: 1 !important;
      transform: none !important;
    }
    .works-slider-track {
      animation: none !important;
    }
  }

  /* ====== Responsive ====== */
  @media (max-width: 1100px) {
    .gnav li > a {
      padding: 24px 12px;
      font-size: 14px;
    }
    .gnav .gnav-cta a {
      margin-left: 10px;
      padding: 10px 16px;
      font-size: 14px;
    }
  }
  @media (max-width: 980px) {
    .gnav ul { display: none; }
    .gnav .gnav-cta { display: none; }
    .header-inner { padding: 0 20px; }
    .menu-toggle { display: inline-flex; }
    .hero-text-box { padding: 28px 0; margin: 0 auto; }
    .hero-overlay{ margin-left: 0; padding: 0 1rem; }
    .container { padding: 0 20px; }
    .section-block { padding: 60px 0; }
    .content-grid, .contact-band .container { grid-template-columns: 1fr; gap: 28px; }
    .recruit-grid { grid-template-columns: 1fr; gap: 1px; }
    .recruit-grid article { padding: 20px 0; }
    .service-list { grid-template-columns: 1fr; }
    .works-slide {
      width: clamp(240px, 70vw, 360px);
      height: clamp(160px, 42vw, 260px);
    }
    .daily-flow { grid-template-columns: 1fr; text-align: center; }
    .daily-flow-step {
      padding: 24px 22px 26px;
      border-right: none;
      border-bottom: 1px solid var(--border-soft);
    }
    .daily-flow-step:last-child {
      border-bottom: none;
    }
    .daily-flow-step::before {
      display: inline-block;
      margin-bottom: 10px;
      padding-bottom: 6px;
    }
    .daily-flow-step:not(:last-child)::after {
      top: auto;
      right: auto;
      left: 50%;
      bottom: 0;
      transform: translate(-50%, 50%) rotate(135deg);
    }
    table.formal th { width: 80px; padding: 14px 12px; font-size: 16px; }
    table.formal td { padding: 14px 16px; font-size: 16px; }
    .contact-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
  }
  @media (min-width: 981px) {
    .mobile-menu { display: none; }
  }
  @media (max-width: 640px) {
    .header-inner { height: 68px; }
    .logo img { height: 30px; }
    .menu-toggle {
      width: 48px;
      height: 48px;
    }
    .mobile-menu {
      inset: 69px 0 0;
    }
    .hero-image {
      min-height: calc(100vh - 99px);
      background-image: url('/img/hero_sp.jpg');
    }
    .contact-btn{ padding: 18px 10px; }
    .works-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .reveal { transform: translateY(0); }

    .sp{ display: block; }
  }
