/* ACT RELAY 事業用LP スタイル */

:root {
  --navy: #123B63;
  --blue: #2F73B8;
  --cyan: #55B8D9;
  --bg-white: #FFFFFF;
  --bg-pale: #F7FBFE;
  --bg-mist: #EEF8FC;
  --text: #17324D;
  --line: #D7E3EC;
  --header-h: 72px;
  --header-h-mobile: 64px;
  --fixed-cta-h: 56px;
  --container-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.75;
  padding-bottom: calc(var(--fixed-cta-h) + 24px);
}

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

a {
  color: inherit;
}

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.5;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-invert {
  background: #fff;
  color: var(--navy);
}

/* header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h-mobile);
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-desktop {
  display: none;
}
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta {
  display: none;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-btn__box {
  width: 24px;
  height: 18px;
  position: relative;
  display: block;
}
.menu-btn__line {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.menu-btn__line:nth-child(1) { top: 0; }
.menu-btn__line:nth-child(2) { top: 8px; }
.menu-btn__line:nth-child(3) { top: 16px; }
.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}
.menu-btn.no-outline:focus-visible {
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: var(--header-h-mobile);
  left: 0;
  right: 0;
  max-height: calc(100svh - var(--header-h-mobile));
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px;
  z-index: 99;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu nav ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-menu__cta {
  width: 100%;
}
.mobile-menu a.no-outline:focus-visible {
  outline: none;
}

body.menu-open {
  overflow: hidden;
}

main {
  padding-top: var(--header-h-mobile);
}

section {
  padding: 64px 0;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-pale);
  display: flex;
  flex-direction: column;
}
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-arc {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: .12;
}
.hero-arc--outer {
  width: 720px;
  height: 720px;
  right: -260px;
  top: -180px;
}
.hero-arc--inner {
  width: 480px;
  height: 480px;
  right: -120px;
  top: -40px;
  border-color: var(--cyan);
  opacity: .18;
}
.hero-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .6;
}
.hero-dot--1 { right: 60px; top: 120px; }
.hero-dot--2 { right: 220px; top: 320px; }

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 72px;
  position: relative;
}
.eyebrow {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .04em;
  margin-bottom: .8em;
}
.eyebrow--on-dark {
  color: var(--cyan);
}
.lead {
  font-size: 1.05rem;
}
.line-break {
  display: block;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.cta-note {
  font-size: .8rem;
  color: #4B6478;
}
.cta-note--on-dark {
  color: #C9DCEA;
}

.hero__visual {
  display: flex;
  justify-content: center;
}
.hero-logo {
  width: 160px;
  height: 160px;
  transform: scale(calc(1 + var(--hp, 0) * .08));
  will-change: auto;
}
html.fx-on .hero-logo {
  will-change: transform;
}

.scroll-cue {
  display: none;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 20px;
  font-size: .75rem;
  letter-spacing: .2em;
  text-decoration: none;
  color: var(--navy);
  opacity: calc(.85 - var(--hp, 0) * 2.5);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 32px;
  background: currentColor;
  animation: cue-line 2s ease-in-out infinite;
}
@keyframes cue-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
html:not(.fx-on) .scroll-cue {
  display: none;
}

/* section rhythm */
.services { background: var(--bg-white); }
.works { background: var(--bg-mist); }
.about {
  background: var(--bg-pale);
  color: var(--text);
  border-top: 1px solid var(--line);
}
.about h2 {
  color: var(--navy);
}

.section-intro {
  max-width: 640px;
  color: #3E5A73;
}

/* cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(18, 59, 99, .08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 16px;
}
.card-icon svg {
  width: 100%;
  height: 100%;
}
.card p:last-child {
  margin-bottom: 0;
}

.price-note {
  color: #3E5A73;
  font-size: .95rem;
  margin: 0;
}

.section-cta {
  margin-top: 32px;
}

/* services: main 2 cards + auxiliary card + pricing panel */
.card-grid--aux {
  grid-template-columns: 1fr;
  margin-top: 0;
}
.card--aux {
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
.card--aux .card-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}
.card--aux__body h3 {
  margin-bottom: .4em;
}
.card--aux__body p:last-child {
  margin-bottom: 0;
}

.price-panel {
  margin-top: 32px;
  background: var(--bg-mist);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* works */
.work-card {
  padding: 0;
  overflow: hidden;
}
.work-card__preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-card__preview img {
  width: 100%;
  height: auto;
}
.work-card__body {
  padding: 20px 24px 0;
  flex: 1;
}
.work-card__label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5em;
}
.work-card__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  margin-top: auto;
}

/* about */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 32px 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(18, 59, 99, .08);
}
.about__logo-field {
  width: 160px;
  height: 160px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__logo-field img {
  width: 160px;
  height: 160px;
  filter: none;
  box-shadow: none;
  border: 0;
}
.about__info {
  width: 100%;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about__info div + div {
  margin-top: 16px;
}
.about__info dt {
  font-size: .78rem;
  color: #3E5A73;
  margin-bottom: .3em;
}
.about__info dd {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}
.about__cta {
  margin-top: 56px;
  width: calc(100% - 48px);
  max-width: calc(var(--container-max) - 48px);
  margin-inline: auto;
  padding: 40px 32px;
  background: var(--navy);
  border-radius: 24px;
  text-align: center;
}
.about__cta-copy {
  max-width: 720px;
  margin-inline: auto;
}
.about__cta-action {
  max-width: 520px;
  margin-inline: auto;
}
.about__cta h3 {
  color: #fff;
  margin-bottom: .6em;
}
.about__cta-copy p {
  color: #C9DCEA;
}
.about__cta .btn {
  margin: 8px 0;
}
@media (max-width: 380px) {
  .about__cta {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* footer */
.site-footer {
  background: var(--navy);
  color: #C9DCEA;
  text-align: center;
  padding: 24px 0;
  font-size: .85rem;
}
.site-footer p {
  margin: 0;
}

/* mobile fixed cta: 既定は非表示。ヒーロー通過後にJSが is-visible を付与する */
.mobile-fixed-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-fixed-cta.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.mobile-fixed-cta .btn {
  width: 100%;
  height: var(--fixed-cta-h);
}
@media (prefers-reduced-motion: reduce) {
  .mobile-fixed-cta {
    transition: none;
  }
}

/* reveal (default: fully visible) */
html.fx-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.fx-on .reveal.is-on {
  opacity: 1;
  transform: none;
}

/* ============ tablet / desktop ============ */
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid--main {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--aux {
    grid-template-columns: 1fr;
  }
  .price-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .price-panel .price-note {
    max-width: 480px;
  }
}

@media (min-width: 900px) {
  .about__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
  .about__text {
    flex: 1;
  }
  .about__visual {
    flex: 0 0 auto;
    width: 360px;
    max-width: 360px;
  }
}

@media (min-width: 1100px) {
  .about__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
  }
  .about__cta-copy {
    flex: 1;
    max-width: none;
    margin-inline: 0;
  }
  .about__cta-action {
    flex: 0 0 auto;
    width: 320px;
    max-width: 320px;
    margin-inline: 0;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }
  body {
    padding-bottom: 0;
  }
  main {
    padding-top: var(--header-h);
  }
  .site-header {
    height: var(--header-h);
  }
  .nav-desktop {
    display: block;
  }
  .nav-cta {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
  .mobile-fixed-cta {
    display: none;
  }
  body {
    padding-bottom: 0;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
  }
  .hero__inner {
    flex: 1 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 64px;
    padding-bottom: 40px;
  }
  .hero__text {
    max-width: 620px;
    padding-left: 40px;
  }
  .hero__visual {
    flex: 0 0 auto;
  }
  .hero-logo {
    width: 240px;
    height: 240px;
  }
  .scroll-cue {
    display: flex;
  }
  html:not(.fx-on) .scroll-cue {
    display: none;
  }

  section {
    padding: 96px 0;
  }
}

@media (min-width: 1200px) {
  .hero__text {
    padding-left: 40px;
  }
}

/* reduced motion: fully static, all content visible */
@media (prefers-reduced-motion: reduce) {
  html.fx-on .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-logo {
    transform: none;
  }
  .scroll-cue {
    display: none;
  }
  html { scroll-behavior: auto; }
}

/* narrow screens: keep scroll cue from overlapping content */
@media (max-height: 700px) and (min-width: 1024px) {
  .scroll-cue {
    display: none;
  }
}
