/* FILE ORDER: COMMON / TYPOGRAPHY & LAYOUT → BASE → HEADER → DROPDOWN → FOOTER → CTA → RESPONSIVE */
:root {
  /* ==================== FONT / 共通書体・文字サイズ ==================== */
  --font-latin: Inter, sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-body: Inter, "Noto Sans JP", sans-serif;
  --text-caption: 12px;
  --text-base: 16px;
  --text-small: 14px;
  --text-lead: 18px;
  --text-medium: clamp(20px, 2vw, 28px);
  --text-subheading: clamp(24px, 2.5vw, 36px);
  --text-large: clamp(38px, 5vw, 74px);

  /* ==================== LAYOUT / 共通コンテンツ幅 ==================== */
  --content-visual: 1680px;
  --content-wide: 1440px;
  --content-main: 1240px;
  --content-narrow: 960px;
  --page-gutter: 40px;
  --page-gutter-mobile: 16px;
  --layout-wide: min(88%, var(--content-wide));
  --layout-main: min(calc(100% - (var(--page-gutter) * 2)), var(--content-main));
  --layout-main-mobile: min(calc(100% - (var(--page-gutter-mobile) * 2)), var(--content-main));
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
body.page-dark {
  color: var(--white);

}
body.page-light {
  color: var(--ink);
  background: var(--surface-page);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}

/* =========================================================
   SHARED PAGE CTA / 子ページ共通お問い合わせ導線
========================================================= */
.page-cta {
  padding: clamp(72px, 8vw, 118px) 0;
  color: var(--white-pure);
  background: var(--gradient-blue-cta);
}

.page-cta__inner {
  width: var(--layout-main);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
}

.page-cta__eyebrow {
  margin: 0 0 18px;
  color: var(--blue-light);
  font: 700 var(--text-small)/1.4 var(--font-latin);
  letter-spacing: .18em;
}

.page-cta__title {
  margin: 0;
  font: 700 clamp(32px, 4.2vw, 60px)/1.35 var(--font-jp);
  letter-spacing: -.045em;
}

.page-cta__text {
  margin: 22px 0 0;
  color: rgba(255,255,255,.72);
  font: 400 var(--text-base)/1.9 var(--font-jp);
}

.page-cta__button {
  min-height: 96px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white-pure);
  border-block: 1px solid rgba(255,255,255,.52);
  font: 700 var(--text-lead)/1.5 var(--font-jp);
  transition: padding .3s ease, background .3s ease;
}

.page-cta__button:hover,
.page-cta__button:focus-visible {
  padding-inline: 38px;
  background: rgba(255,255,255,.08);
}

.page-cta__button i {
  font-size: 28px;
  font-style: normal;
  transition: transform .3s ease;
}

.page-cta__button:hover i,
.page-cta__button:focus-visible i {
  transform: translate(5px, -5px);
}

@media (max-width: 700px) {
  .page-cta {
    padding: 68px 0;
  }

  .page-cta__inner {
    width: var(--layout-main-mobile);
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .page-cta__title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .page-cta__title br {
    display: none;
  }

  .page-cta__button {
    width: 100%;
    min-height: 64px;
    padding: 18px 20px;
    font-size: var(--text-base);
  }
}
.site-header {
  --header-text: var(--white-pure);
  --header-subtext: rgba(255,255,255,.78);
  --header-small: rgba(255,255,255,.88);
  --header-border: rgba(255,255,255,.55);
  --header-line: var(--white-pure);
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  padding: 0 clamp(24px,3.2vw,52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--header-text);
  transition: background .35s,color .35s,box-shadow .35s;
}
.site-header.is-scrolled {
  --header-text: var(--ink);
  --header-subtext: var(--text-subtle);
  --header-small: var(--text-muted);
  --header-border: rgba(7,24,63,.25);
  --header-line: var(--ink);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 30px rgba(4,41,87,.07);
  backdrop-filter: blur(12px);
}
.logo,.footer-logo {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.05em;
}
.logo-mark {
  position: relative;
  width: 17px;
  height: 36px;
  display: block;
}
.logo-mark i,.logo-mark b {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(16,140,255,.55);
}
.logo-mark i {
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.logo-mark b {
  bottom: 0;
  width: 9px;
  height: 22px;
  border-radius: 8px;
  transform: rotate(-8deg);
}
.global-nav {
  display: flex;
  align-items: center;
  height: 100%;
}
.global-nav a {
  position: relative;
  height: 100%;
  min-width: 96px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  scale: 0 1;
  transition: scale .3s;
}
.global-nav a:hover::after,.global-nav .is-current::after {
  scale: 1;
}
.global-nav em {
  display: none;
}
.global-nav span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  text-align: center;
}
.global-nav small {
  display: block;
  margin-top: 4px;
  color: var(--header-small);
  font: 500 9px "Noto Sans JP",sans-serif;
  letter-spacing: .04em;
  text-align: center;
}

/* ==================== SERVICE DROPDOWN / 共通ヘッダー ==================== */

.nav-service {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-service > .nav-service-link {
  width: 100%;
}

.nav-service-toggle {
  display: none;
}

.service-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  z-index: 30;
  width: 310px;
  padding: 10px;
  color: var(--navy-soft);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(7, 91, 160, 0.13);
  box-shadow: 0 22px 55px rgba(0, 24, 70, 0.18);
  opacity: 0;
  visibility: hidden;
  translate: -50% 10px;
  transition: opacity 0.25s ease, visibility 0.25s ease, translate 0.25s ease;
}

.nav-service:hover .service-dropdown,
.nav-service:focus-within .service-dropdown,
.nav-service.is-open .service-dropdown {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}

.global-nav .service-dropdown a {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 62px;
  padding: 12px 14px;
  justify-content: space-between;
  gap: 20px;
  color: var(--navy-soft);
  border-bottom: 1px solid rgba(7, 91, 160, 0.1);
  transition: color 0.25s ease, background 0.25s ease, padding 0.25s ease;
}

.global-nav .service-dropdown a:last-child {
  border-bottom: 0;
}

.global-nav .service-dropdown a::after {
  display: none;
}

.global-nav .service-dropdown a:hover,
.global-nav .service-dropdown a:focus-visible {
  padding-left: 19px;
  color: var(--blue);
  background: #f0f8ff;
}

.global-nav .service-dropdown span {
  font-size: 12px;
  text-align: left;
}

.global-nav .service-dropdown small {
  margin-top: 5px;
  color: #61778e;
  font-size: 11px;
  text-align: left;
}

.service-dropdown i {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: var(--text-base);
  font-style: normal;
}
.contact-link {
  border: 1px solid var(--header-border);
  margin-left: 8px;
  height: 44px!important;
}
.contact-link em {
  margin-top: 0;
}
.menu-button {
  display: none;
}
.site-footer {
  color: rgba(255,255,255,.88);
  background: #073778;
  padding: 54px clamp(24px,4vw,64px) 24px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(290px,.85fr) minmax(620px,1.7fr);
  gap: clamp(55px,8vw,130px);
  align-items: start;
}
.footer-company {
  min-width: 0;
}
.footer-address {
  margin: 13px 0 17px;
  color: rgba(255,255,255,.8);
  font-style: normal;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .04em;
}
.footer-tel {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 246px;
  max-width: 100%;
  margin-bottom: 17px;
  color: var(--white-pure);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .015em;
}
.footer-tel::before {
  content: "☎";
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
}
.footer-tel small {
  display: block;
  margin-top: 6px;
  font: 500 10px var(--font-jp);
  letter-spacing: .02em;
}
.footer-tel span {
  flex: 1 1 auto;
  text-align: right;
}
.footer-certifications {
  display: grid;
  grid-template-columns: repeat(4,54px);
  gap: 6px;
  width: 246px;
  max-width: 100%;
  padding: 6px;
  border-radius: 7px;
  background: var(--white-pure);
}
.footer-certifications span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 36px;
  padding: 3px;
  overflow: hidden;
  background: transparent;
}
.footer-certifications img {
  display: block;
  width: 46px;
  height: 30px;
  object-fit: contain;
}
.footer-links {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr repeat(3,.8fr) 1.05fr;
  gap: clamp(22px,3vw,52px);
}
.footer-column > a {
  display: inline-block;
  color: var(--white-pure);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .12em;
}
.footer-column > a small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.68);
  font: 500 9px var(--font-jp);
  letter-spacing: .02em;
}
.footer-subnav {
  display: grid;
  gap: 0;
  margin-top: 14px;
}
.footer-subnav a {
  min-width: 94px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  font: 500 10px var(--font-jp);
  letter-spacing: .04em;
  transition: color .25s,padding-left .25s;
}
.footer-subnav a::before {
  content: "I";
  margin-right: 8px;
  color: var(--blue-light);
  font-family: var(--font-latin);
}
.footer-subnav a:hover {
  padding-left: 4px;
  color: var(--white-pure);
}
.footer-contact {
  width: 100%;
  padding: 12px 16px;
  text-align: center;
  background: linear-gradient(110deg,var(--blue) 0%,#22b6ee 100%);
  box-shadow: 0 10px 24px rgba(0,28,78,.18);
  transition: filter .3s,transform .3s,box-shadow .3s;
}
.footer-contact::after {
  display: none;
}
.footer-contact:hover,
.footer-contact:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,28,78,.28);
}
.footer-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.footer-lower-left {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 0;
  color: var(--white-pure);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  transition: color .3s,background .3s,border-color .3s,transform .3s;
}
.footer-social a:hover {
  color: var(--white-pure);
  background: transparent;
  border-color: transparent;
  transform: translateY(-3px);
}
.footer-social img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.footer-social span {
  display: block;
  width: 18px;
  height: 18px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent;
  font-size: 0;
}
.footer-social a:nth-child(1) span {
  background-image: url("../../img/social/x.png");
}
.footer-social a:nth-child(2) span {
  background-image: url("../../img/social/instagram.png");
}
.footer-social a:nth-child(3) span {
  background-image: url("../../img/social/facebook.png");
}
.footer-social a:nth-child(4) span {
  background-image: url("../../img/social/youtube.png");
}
.footer-catch {
  margin: 0 auto 0 0;
  white-space: nowrap;
  color: rgba(255,255,255,.35);
  font-size: 9px;
  letter-spacing: .12em;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 27px;
  flex: 0 0 auto;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  letter-spacing: .08em;
}
[data-reveal] {
  opacity: 0;
  translate: 0 38px;
  transition: opacity .9s ease var(--delay,0s),translate .9s cubic-bezier(.2,.8,.2,1) var(--delay,0s);
}
@media (scripting:none) {
  [data-reveal] { opacity: 1; translate: 0 0; }
}
[data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}
@media (max-width:1050px) {
  .global-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    padding: 92px 28px 36px;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    color: var(--white-pure);
    background: rgba(6, 51, 119, 0.98);
    opacity: 0;
    visibility: hidden;
    translate: 0 -15px;
    transition: .35s;
  }
  body.menu-open .global-nav {
    opacity: 1;
    visibility: visible;
    translate: 0;
  }
  body.menu-open {
    overflow: hidden;
  }
  .global-nav a {
    flex: 0 0 auto;
    min-height: 68px;
    height: auto;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.62);
  }

  .nav-service {
    height: auto;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: stretch;
  }

  .nav-service > .nav-service-link {
    grid-column: 1;
    min-width: 0;
  }

  .nav-service-toggle {
    position: relative;
    grid-column: 2;
    display: block;
    min-height: 68px;
    padding: 0;
    color: var(--white-pure);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
    background: transparent;
    cursor: pointer;
  }

  .nav-service-toggle span,
  .nav-service-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: currentColor;
    translate: -50% -50%;
    transition: rotate 0.3s ease;
  }

  .nav-service-toggle span::after {
    rotate: 90deg;
  }

  .nav-service.is-open .nav-service-toggle span::after {
    rotate: 0deg;
  }

  .service-dropdown {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    color: var(--white-pure);
    background: rgba(0, 24, 74, 0.28);
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    translate: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .nav-service.is-open .service-dropdown {
    max-height: 440px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .global-nav .service-dropdown a {
    min-height: 58px;
    padding: 10px 12px;
    color: var(--white-pure);
    border-bottom-color: rgba(255, 255, 255, 0.18);
  }

  .global-nav .service-dropdown a:hover,
  .global-nav .service-dropdown a:focus-visible {
    padding-left: 17px;
    color: var(--white-pure);
    background: rgba(255, 255, 255, 0.08);
  }

  .global-nav .service-dropdown small {
    color: rgba(255, 255, 255, 0.66);
  }

  .service-dropdown i {
    color: #75e3ff;
  }

  /* 展開時にPC用の translate(-50%) が残って左へずれるのを防ぐ（SERVICE・ABOUT共通） */
  .nav-service:hover .service-dropdown,
  .nav-service:focus-within .service-dropdown,
  .nav-service.is-open .service-dropdown {
    translate: 0;
  }

  /* モバイルメニューの文字は左揃えに統一 */
  .global-nav a span,
  .global-nav a small {
    text-align: left;
  }
  .global-nav em {
    margin: 0;
    align-self: auto;
    color: rgba(255,255,255,.62);
  }
  .global-nav small {
    color: rgba(255,255,255,.7);
  }
  .contact-link {
    margin: 18px 0 0;
    border-color: rgba(255,255,255,.45);
  }
  .footer-main {
    grid-template-columns: 230px 1fr;
    gap: 42px;
  }
  .footer-links {
    grid-template-columns: repeat(3,1fr);
    gap: 30px 24px;
  }
  .footer-lower {
    flex-wrap: wrap;
  }
  .menu-button {
    display: block;
    position: relative;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
  }
  .menu-button span {
    position: absolute;
    left: 8px;
    width: 27px;
    height: 1px;
    background: var(--header-line);
    transition: .3s;
  }
  .menu-button span:first-child {
    top: 16px;
  }
  .menu-button span:last-child {
    top: 25px;
  }
  body.menu-open .menu-button span {
    background: var(--white-pure);
  }
  body.menu-open .menu-button span:first-child {
    top: 21px;
    rotate: 45deg;
  }
  body.menu-open .menu-button span:last-child {
    top: 21px;
    rotate: -45deg;
  }
}
@media (max-width:700px) {
  .site-header {
    height: 76px;
    padding: 0 22px;
  }
  .logo {
    font-size: var(--text-lead);
  }
  .site-footer {
    padding: 58px 24px 26px;
  }
  .footer-main,
  .footer-lower {
    display: block;
  }
  .footer-address {
    font-size: 12px;
  }
  .footer-certifications {
    grid-template-columns: repeat(4,minmax(0,54px));
  }
  .footer-certifications span {
    width: 100%;
    height: 36px;
  }
  .footer-links {
    grid-template-columns: repeat(2,1fr);
    gap: 32px 24px;
    margin-top: 48px;
  }
  .footer-column > a {
    font-size: var(--text-small);
  }
  .footer-subnav a {
    font-size: 12px;
  }
  .footer-lower {
    margin-top: 44px;
  }
  .footer-lower-left {
    display: block;
  }
  .footer-social {
    width: 100%;
    margin-bottom: 14px;
  }
  .footer-catch {
    white-space: normal;
  }
  .footer-legal {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
/* Shared navigation typography */
.global-nav span {
  font-size: 13px;
}
.global-nav small {
  font-size: 9px;
}
@media(max-width:1050px) {
  .global-nav span {
    font-size: var(--text-base);
  }
  .global-nav small {
    font-size: 12px;
  }
}
/* Official SVG logo */
.logo,.footer-logo {
  flex: 0 0 auto;
  width: 158px;
  height: 40px;
  background: url("../../img/common/logo-black.svg") left center/contain no-repeat;
}
.logo>*,.footer-logo>* {
  display: none;
}
.site-header--dark:not(.is-scrolled) .logo,.footer-logo {
  filter: brightness(0) invert(1);
}
.site-header--light .logo,.site-header.is-scrolled .logo {
  filter: none;
}
@media(max-width:700px) {
  .logo {
    width: 155px;
    height: 38px;
  }
  .footer-logo {
    width: 185px;
    height: 44px;
  }
}
/* WORKSは公開準備中のため、共通ナビゲーションから一時的に非表示 */
.global-nav > a[href*="works/"],
.footer-links .footer-column:has(> a[href*="works/"]) {
  display: none;
}

@media (min-width: 1051px) {
  .footer-links {
    grid-template-columns: 1.2fr 1.1fr repeat(3,.8fr) 1.05fr;
  }
}


/* SEO：h1内の日本語キャプション／スクリーンリーダー用テキスト */
h1 .h1-ja{display:block;margin-top:.9em;font:500 clamp(14px,1.3vw,17px)/1.6 var(--font-jp,sans-serif);letter-spacing:.2em;text-transform:none;-webkit-text-fill-color:currentColor}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
