/*
Theme Name: wp-nano
Theme URI: https://www.nanotrack.jp/
Author: nanoTRACK
Description: nanoTRACK corporate site theme (news / journal / works run on standard Posts + Categories).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: wp-nano
*/

/* =========================================================
   nanoTRACK global styles (loaded on every page via functions.php)
   Base styles are written for PC and overridden inside a
   single `@media (max-width: 768px)` block for SP.
   Font sizes use clamp() so type scales fluidly between
   breakpoints instead of jumping at the media query.
========================================================= */

:root {
  --green: #0F9E40;
  --black: #000000;
  --dark: #282828;
  --text: #111111;
  --border: rgba(0, 0, 0, 0.12);

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;

  /* fluid font sizes: clamp(min, viewport-relative, max=Figma px) */
  --fs-64: clamp(1.5rem, 0.27rem + 5.23vw, 4rem); /* 24px～64px */
  --fs-48: clamp(1.5rem, 0.76rem + 3.14vw, 3rem); /* 24px～48px */
  --fs-36: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); /* 24px～36px */
  --fs-24: clamp(1rem, 0.75rem + 1.05vw, 1.5rem); /* 16px～24px */
  --fs-20: clamp(1rem, 0.83rem + 0.7vw, 1.25rem); /* 16px～20px */
  --fs-18: clamp(0.88rem, 0.75rem + 0.52vw, 1.13rem); /* 14px～18px */
  --fs-16: clamp(0.88rem, 0.81rem + 0.26vw, 1rem); /* 14px～16px */

  --header-h: 101px;
  --container-max: 1440px;
  --container-pad: clamp(20px, 10.4vw, 150px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  /* Sticky footer (classic pattern): html/body both need an explicit
     height for the flex column below to fill the real viewport. Without
     this, a short page (few content blocks) leaves body shorter than the
     window, and the fixed #bgLines canvas shows through as blank space
     below the footer. */
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

/* story.html only: overflow-x:hidden above breaks position:sticky for
   the pinned blob visual, so this page opts back into visible overflow. */
body.page-story {
  overflow-x: visible;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.text-green {
  color: var(--green);
}

/* ---------- background vertical lines (canvas) ---------- */

.bg-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-18);
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.btn:hover,
button.btn:hover {
  opacity: 0.85;
}

.btn--green {
  background: var(--green);
  color: #fff;
}

.btn--black {
  background: var(--black);
  color: #fff;
  width: 240px;
  font-size: var(--fs-24);
}

.btn--wide {
  width: 320px;
  font-size: var(--fs-24);
}

/* ---------- section title ---------- */

.section-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-48);
  letter-spacing: 0.1em;
  line-height: 1.35;
}

.section-title h3 {
  margin: 4px 0 0;
  font-size: var(--fs-18);
  font-weight: 500;
}

.section-title--white h2,
.section-title--white h3 {
  color: #fff;
}

/* ---------- blob animation (shared) ---------- */

.blob {
  background: var(--green);
  animation: blobMorph var(--dur, 7s) ease-in-out infinite;
}

/* ---------- scroll reveal (fade in from bottom) ---------- */

.reveal-up,
.hero-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible,
.hero-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service__card.reveal-up:nth-of-type(2) {
  transition-delay: 0.15s;
}

.philosophy__text.reveal-up {
  transition-delay: 0.1s;
}

.philosophy__body > .btn--black.reveal-up {
  transition-delay: 0.2s;
}

.cta__block.reveal-up.cta__block--tel {
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .hero-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- hero blob reveal (fades in place, no slide) ---------- */

.hero__blob-wrap.hero-reveal,
.hero__blob-wrap.hero-reveal.is-visible {
  transform: none;
}

@keyframes blobMorph {
  0%   { border-radius: 58% 42% 38% 62% / 55% 40% 60% 45%; }
  25%  { border-radius: 42% 58% 62% 38% / 38% 62% 38% 62%; }
  50%  { border-radius: 65% 35% 50% 50% / 42% 55% 45% 58%; }
  75%  { border-radius: 38% 62% 42% 58% / 60% 38% 62% 40%; }
  100% { border-radius: 58% 42% 38% 62% / 55% 40% 60% 45%; }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
    border-radius: 50%;
  }
}

/* =========================================================
   Header / global nav
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--border);
}

body.nav-open .site-header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.site-header__inner {
  width: 100%;
  height: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: inline-flex;
  transition: opacity 0.2s ease;
}

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

.site-header__logo img {
  width: clamp(120px, 12vw, 205px);
  height: auto;
  transition: filter 0.3s ease;
}

body.nav-open .site-header__logo img {
  filter: brightness(0) invert(1);
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-24);
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.3s ease;
}

.menu-btn__line {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, background-color 0.3s ease, width 0.3s ease;
}

body:not(.nav-open) .menu-btn:hover {
  color: var(--green);
}

body:not(.nav-open) .menu-btn:hover .menu-btn__line {
  background: var(--green);
  width: 32px;
}

body.nav-open .menu-btn {
  color: #fff;
}

body.nav-open .menu-btn:hover {
  opacity: 0.8;
}

body.nav-open .menu-btn__line {
  background: #fff;
  transform: rotate(45deg);
}

.global-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--container-pad);
  background: var(--green);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.nav-open .global-nav {
  opacity: 1;
  visibility: visible;
}

.global-nav__list li {
  overflow: hidden;
}

.nav-link {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 10px 0;
  font-size: var(--fs-36);
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.35s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link:hover::before {
  transform: scaleX(1);
}

body.nav-open .nav-link {
  opacity: 1;
  transform: translateY(0);
}

body.nav-open .global-nav__list li:nth-child(1) .nav-link { transition-delay: 0.08s, 0.08s, 0s; }
body.nav-open .global-nav__list li:nth-child(2) .nav-link { transition-delay: 0.14s, 0.14s, 0s; }
body.nav-open .global-nav__list li:nth-child(3) .nav-link { transition-delay: 0.2s, 0.2s, 0s; }
body.nav-open .global-nav__list li:nth-child(4) .nav-link { transition-delay: 0.26s, 0.26s, 0s; }
body.nav-open .global-nav__list li:nth-child(5) .nav-link { transition-delay: 0.32s, 0.32s, 0s; }
body.nav-open .global-nav__list li:nth-child(6) .nav-link { transition-delay: 0.38s, 0.38s, 0s; }
body.nav-open .global-nav__list li:nth-child(7) .nav-link { transition-delay: 0.44s, 0.44s, 0s; }
body.nav-open .global-nav__list li:nth-child(8) .nav-link { transition-delay: 0.5s, 0.5s, 0s; }

.global-nav__tag {
  margin: clamp(24px, 4vw, 40px) 0 0;
  font-size: var(--fs-16);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
}

body.nav-open {
  overflow: hidden;
}

/* =========================================================
   Hero
========================================================= */

.hero {
  padding-top: var(--header-h);
  min-height: 920px;
  display: flex;
  align-items: center;
}

.hero__inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.hero__text {
  flex: 1 1 auto;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: var(--fs-20);
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.1em;
}

.eyebrow__line {
  width: 40px;
  height: 1px;
  background: var(--green);
}

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-64);
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--text);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

#heroTitle {
  position: relative;
}

.hero-char {
  display: inline-block;
  opacity: 0;
}

.hero-char.is-shown {
  opacity: 1;
}

.hero-char--accent {
  color: var(--green);
}

.hero-cursor {
  position: absolute;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cursor.is-visible {
  opacity: 1;
}

.hero-cursor.is-blinking {
  animation: heroCursorBlink 0.9s steps(1) infinite;
}

.hero-cursor.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes heroCursorBlink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-char {
    opacity: 1;
  }

  .hero-cursor {
    display: none;
  }
}

.hero__lead {
  margin: 0 0 clamp(48px, 12.6vw, 181px);
  font-size: var(--fs-24);
  font-weight: 500;
  line-height: 1.5;
}

.hero__lead-line {
  display: block;
}

.hero__service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__service-label {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.5;
}

.hero__blob-wrap {
  flex: none;
  width: clamp(180px, 27.8vw, 400px);
  height: clamp(180px, 27.8vw, 400px);
}

.hero__blob {
  width: 100%;
  height: 100%;
}

.hero__scroll {
  position: fixed;
  right: 30px;
  bottom: 32px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  writing-mode: vertical-rl;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.page-scrolled .hero__scroll {
  opacity: 0;
  visibility: hidden;
}

.hero__scroll-label {
  font-size: var(--fs-18);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
}

.page-top {
  position: fixed;
  right: 30px;
  bottom: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 6vw, 84px);
  height: clamp(64px, 6vw, 84px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

body.page-top-visible .page-top {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.page-top__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: filter 0.2s ease;
}

.page-top:hover .page-top__blob {
  filter: brightness(1.15);
}

.page-top__icon {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 11px solid #fff;
}

/* =========================================================
   Service
========================================================= */

.service {
  background: var(--green);
  padding: clamp(60px, 8vw, 100px) 0;
}

.service__list {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
}

.service__card {
  position: relative;
  flex: 1 1 0;
  background: #fff;
  min-height: clamp(220px, 20vw, 300px);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

a.service__card:hover {
  opacity: 0.85;
}

.service__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, transparent 50%, var(--black) 50%);
}

.service__card-label {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 500;
}

.service__card-title {
  margin: 0;
  font-size: var(--fs-48);
  font-weight: 700;
}

/* =========================================================
   Philosophy
========================================================= */

.philosophy {
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
}

.philosophy .section-title {
  text-align: left;
}

.philosophy__body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.philosophy__catch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(24px, 3vw, 32px);
}

.philosophy__blob--lg {
  width: clamp(60px, 6.9vw, 100px);
  height: clamp(60px, 6.9vw, 100px);
}

.philosophy__blob--sm {
  width: clamp(48px, 5.6vw, 80px);
  height: clamp(48px, 5.6vw, 80px);
  align-self: flex-end;
}

.philosophy__catch-text {
  margin: 0;
  font-size: var(--fs-36);
  font-weight: 700;
  line-height: 1.4;
}

.philosophy__text {
  margin: 0 0 clamp(32px, 4vw, 48px);
  font-size: var(--fs-24);
  font-weight: 500;
  line-height: 1.5;
}

/* =========================================================
   News
========================================================= */

.news {
  padding: clamp(50px, 7vw, 90px) 0;
}

.news__list {
  background: rgba(255, 255, 255, 0.8);
  padding: clamp(16px, 2.5vw, 32px) clamp(20px, 3vw, 40px);
}

.news__item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(10px, 1.5vw, 15px) 0;
  border-bottom: 1px solid var(--border);
}

.news__date {
  flex: none;
  font-size: var(--fs-18);
  font-weight: 700;
}

.news__label {
  display: inline-block;
  font-size: var(--fs-18);
  font-weight: 500;
  background-image: linear-gradient(to right, var(--green) 50%, var(--text) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-underline-offset: 3px;
  transition: background-position 0.4s ease;
}

.news__label:hover {
  background-position: 0 0;
  text-decoration: none;
}

@supports not (background-clip: text) {
  .news__label {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: unset;
  }

  .news__label:hover {
    color: var(--green);
  }
}

.news__more {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(16px, 2vw, 24px);
}

.news__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-16);
  font-weight: 500;
  background-image: linear-gradient(to right, var(--green) 50%, var(--text) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-underline-offset: 3px;
  transition: background-position 0.4s ease;
}

.news__more-link:hover {
  background-position: 0 0;
  text-decoration: none;
}

.news__more-link .arrow {
  border-color: var(--text);
  transition: border-color 0.4s ease;
}

.news__more-link:hover .arrow {
  border-color: var(--green);
}

@supports not (background-clip: text) {
  .news__more-link {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: unset;
  }

  .news__more-link:hover {
    color: var(--green);
  }
}

/* =========================================================
   CTA
========================================================= */

.cta {
  background: var(--dark);
  padding: clamp(30px, 3.5vw, 40px) 0;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  color: #fff;
}

.cta__block {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 18px);
}

.cta__block--tel {
  align-items: flex-start;
}

.cta__label {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 500;
}

.cta__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%) scaleX(0.5);
  background: rgba(255, 255, 255, 0.25);
}

.cta__tel {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.cta__tel a {
  font-size: var(--fs-36);
  font-weight: 700;
}

.cta__tel-note {
  font-size: var(--fs-18);
  font-weight: 500;
}

/* =========================================================
   Footer
========================================================= */

.footer {
  background: var(--black);
  color: #fff;
  padding: clamp(40px, 5vw, 65px) 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(40px, 5vw, 65px);
}

.footer__about {
  flex: none;
}

.footer__logo {
  display: block;
  width: clamp(140px, 14vw, 205px);
  height: auto;
  margin: 0 0 24px;
}

.footer__address {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 500;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  gap: clamp(32px, 5vw, 90px);
}

.footer__col-title {
  margin: 0 0 20px;
  font-size: var(--fs-18);
  font-weight: 700;
}

.footer__col ul li + li {
  margin-top: 10px;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.75rem, 0.63rem + 0.52vw, 1rem); /* 12px～16px */
  font-weight: 500;
  white-space: nowrap;
  background-image: linear-gradient(to right, var(--green) 50%, #fff 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 0.4s ease;
}

.footer__col a:hover {
  background-position: 0 0;
}

.footer__col a:hover .arrow {
  border-color: var(--green);
}

@supports not (background-clip: text) {
  .footer__col a {
    background: none;
    color: #fff;
    -webkit-text-fill-color: unset;
  }

  .footer__col a:hover {
    color: var(--green);
  }
}

.arrow {
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  transition: border-color 0.2s ease;
}

.footer__copyright {
  margin: 0;
  text-align: center;
  font-size: var(--fs-16);
  font-weight: 500;
}

/* =========================================================
   common
========================================================= */
@media (max-width: 768px) {
	.pconly {
	  display: none;
	}
}

@media (min-width: 769px) {
	.sponly {
	  display: none;
	}
}

@media screen and (max-width: 1024px) {
  .br-sp { display: none; }
}

@media screen and (min-width: 768px) {
  .br-pc { display: none; }
}

/* =========================================================
   SP (max-width: 768px) overrides
========================================================= */

@media (max-width: 768px) {

  .site-header {
    height: 72px;
  }

  .nav-link::before {
    content: none;
  }

  .nav-link:hover {
    color: #fff;
  }

  .hero {
    padding-top: 72px;
    min-height: 0;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero__text {
    display: contents;
  }

  .eyebrow {
    margin-bottom: 0;
  }

  .hero__title {
    margin-bottom: 0;
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__lead {
    margin: 0;
  }

  .hero__blob-wrap {
    order: 1;
    align-self: center;
    width: 55vw;
    height: 55vw;
    max-width: 220px;
    max-height: 220px;
  }

  .hero__service {
    order: 2;
  }

  .hero__scroll {
    display: none;
  }

  .page-top {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
  }

  .philosophy__catch {
    flex-direction: column;
    gap: 16px;
  }

  .philosophy__blob--sm {
    align-self: center;
  }

  .news__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cta__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta__divider {
    display: none;
  }

  .cta__block--tel {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .btn--wide,
  .btn--black {
    width: 100%;
  }

  .footer__copyright {
    text-align: center;
  }
}

/* Footer nav 独自ブレイクポイント */
@media (max-width: 980px) {
  .footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 32px;
  }

  .footer__col ul li + li {
    margin-top: 0;
  }

  .cta__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta__divider {
    display: none;
  }

  .cta__block--tel {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .btn--wide {
    width: 100%;
  }
}

/* Service cards 独自ブレイクポイント */
@media (max-width: 1161px) {
  .service__list {
    flex-direction: column;
  }

  .service__card {
    min-height: 200px;
  }
}

/* =========================================================
   Page transition (green wipe, left to right)
   Default state: hidden, collapsed against the right edge.
   html.js-transition-init (added by an inline script in
   <head>, before first paint) starts pages fully covered so
   the reveal animation can play on load without a flash of
   unstyled content; if JS is disabled that class is never
   added and the overlay just stays hidden.
========================================================= */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s ease;
  pointer-events: none;
}

html.js-transition-init .page-transition {
  transform: scaleX(1);
  transform-origin: right;
}

.page-transition.is-covering {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    transition: none;
  }
}
