/* ===============================================================
   富士冷熱工業株式会社 - サイトスタイル
   Colors: Blue / White / Pink (#ff66cc accent)
=============================================================== */

:root {
  --color-blue:        #0a4d8c;
  --color-blue-dark:   #063968;
  --color-blue-light:  #e8f2fb;
  --color-sky:         #4aa8e0;
  --color-pink:        #ff66cc;
  --color-pink-dark:   #e54fb6;
  --color-pink-light:  #ffe6f5;
  --color-text:        #1a2a3a;
  --color-text-sub:    #5a6a7a;
  --color-bg:          #ffffff;
  --color-bg-soft:     #f5f9fc;
  --color-border:      #e2eaf0;

  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  --font-en: 'Montserrat', 'Noto Sans JP', sans-serif;

  --header-h: 92px;
  --max-w: 1200px;
  --radius: 8px;

  --shadow-sm: 0 2px 8px rgba(10, 77, 140, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 77, 140, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 77, 140, 0.15);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  /* Japanese proportional metrics — collapses excessive spacing
     around punctuation (、。「」（） etc.) */
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-pink); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
button { border: 0; background: transparent; cursor: pointer; font-family: inherit; }
address { font-style: normal; }
section { position: relative; }

/* ---------- Page transition (left fill-in → left-to-right peel reveal) ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-blue-dark);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}
/* 退場：左から塗りつぶしが入り、右まで到達 */
.page-transition.is-cover-in {
  pointer-events: all;
  transform-origin: left center;
  animation: ptCoverIn .25s cubic-bezier(.7, 0, .3, 1) forwards;
}
/* 入場：覆った状態から左側がめくれて右へ抜ける */
.page-transition.is-cover-out {
  transform: scaleX(1);
  transform-origin: right center;
  animation: ptCoverOut .3s cubic-bezier(.7, 0, .3, 1) forwards;
}
@keyframes ptCoverIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes ptCoverOut {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

/* ---------- Common ---------- */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 24px; }

.section { padding: 100px 0; }
.section--soft { background: var(--color-bg-soft); }

.section-head { text-align: center; margin-bottom: 36px; }
.section-head__en {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--color-pink);
  font-weight: 600;
  margin-bottom: 6px;
}
.section-head__ja {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: .04em;
}
.section-head__ja::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-pink));
  margin: 12px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  border-radius: 999px;
  transition: all .25s var(--ease);
  position: relative;
  text-align: center;
  min-width: 200px;
}
.btn--primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: #fff;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}
.btn--ghost:hover {
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-2px);
}
.btn--pink {
  background: var(--color-pink);
  color: #fff;
}
.btn--pink:hover {
  background: var(--color-pink-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform .25s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

/* ===============================================================
   Header
=============================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--color-text);
  flex-shrink: 0;
}
.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.global-nav { flex: 1; }
.global-nav__list {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 2px;
  height: 100%;
}
.global-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.global-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  position: relative;
  line-height: 1.3;
  height: 100%;
}
.global-nav__link .en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--color-pink);
  font-weight: 600;
  margin-top: 3px;
}
.has-sub > .global-nav__link .ja::after { content: none; }
.global-nav__link::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-pink);
  transition: width .25s var(--ease);
}
.global-nav__item:hover > .global-nav__link::before,
.global-nav__link:focus-visible::before { width: 60%; }
.global-nav__item:hover > .global-nav__link { color: var(--color-blue); }

/* ----- Submenu (PC: hover dropdown) ----- */
.global-nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(10, 77, 140, 0.18);
  padding: 12px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 50;
}
.global-nav__sub::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
}
.global-nav__item.has-sub:hover > .global-nav__sub,
.global-nav__item.has-sub:focus-within > .global-nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.global-nav__sub li { margin: 0; }
.global-nav__sub a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 6px;
  white-space: nowrap;
  transition: all .2s var(--ease);
  position: relative;
  padding-left: 24px;
}
.global-nav__sub a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-pink);
  opacity: .6;
  transition: all .2s var(--ease);
}
.global-nav__sub a:hover {
  background: var(--color-pink-light);
  color: var(--color-pink-dark);
  padding-left: 28px;
}
.global-nav__sub a:hover::before { opacity: 1; transform: translateY(-50%) scale(1.3); }

/* Hide sub-toggle on PC (only used on mobile) */
.global-nav__sub-toggle { display: none; }

/* CTA pill button (PC: お問い合わせ) */
.global-nav__item--cta { margin-left: 10px; }
.global-nav__cta {
  background: var(--color-blue);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 22px !important;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 4px 12px rgba(10, 77, 140, 0.18);
}
.global-nav__cta .en { color: rgba(255, 255, 255, 0.85) !important; }
.global-nav__cta::before { display: none !important; }   /* hide underline indicator */
.global-nav__item--cta:hover > .global-nav__cta {
  background: var(--color-pink);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 102, 204, 0.35);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  padding-left: 24px;
  border-left: 1px solid var(--color-border);
}
.header-contact__label {
  font-size: 10px;
  color: var(--color-text-sub);
  letter-spacing: .1em;
}
.header-contact__tel {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin: 2px 0;
}
.header-contact__hours {
  font-size: 11px;
  color: var(--color-text-sub);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--color-blue-dark);
  transition: all .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===============================================================
   Hero
   ※ ヒーロー固有のスタイルは各PHPファイル内に <style> ブロックで記述。
      理由: ページパターンごとにヒーローのデザインを差し替えやすくするため。
      ここに残っているのは、他のセクションでも使われる @keyframes のみ。
=============================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===============================================================
   About — dreamy nature-themed full-bg section
=============================================================== */
.about {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #d9eef6;
}
/* Background image layer (with slow ken-burns motion) */
.about::before {
  content: "";
  position: absolute;
  inset: -4%;
  background-image: url('../img/5103249_m.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: aboutKenburns 24s ease-in-out infinite alternate;
  transform-origin: center center;
}
/* Soft radial white glow for readability + dreamy halo */
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 45%,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.45) 35%,
      rgba(255, 255, 255, 0.10) 65%,
      transparent 90%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 25%,
      transparent 75%,
      rgba(10, 77, 140, 0.10) 100%);
  z-index: -1;
  pointer-events: none;
}

@keyframes aboutKenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.5%, 1%); }
}

/* Floating light particles for fantasy feel (created via radial-gradients) */
.about__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.about__inner::before,
.about__inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  filter: blur(1px);
  z-index: -1;
}
.about__inner::before {
  width: 14px;
  height: 14px;
  top: 18%;
  left: 12%;
  box-shadow:
    140px 60px 0 -2px rgba(255,255,255,0.7),
    340px -40px 0 -3px rgba(255,255,255,0.6),
    520px 90px 0 -4px rgba(255,255,255,0.5),
    -40px 220px 0 -3px rgba(255,255,255,0.6),
    680px 30px 0 -2px rgba(255,255,255,0.7),
    820px 180px 0 -4px rgba(255,255,255,0.5),
    260px 280px 0 -3px rgba(255,255,255,0.6);
  animation: floatParticleA 9s ease-in-out infinite alternate;
}
.about__inner::after {
  width: 10px;
  height: 10px;
  bottom: 18%;
  right: 12%;
  box-shadow:
    -120px -40px 0 -2px rgba(255,255,255,0.6),
    -280px 60px 0 -3px rgba(255,255,255,0.5),
    -480px -120px 0 -3px rgba(255,255,255,0.7),
    -640px 30px 0 -4px rgba(255,255,255,0.5),
    -800px -80px 0 -2px rgba(255,255,255,0.6);
  animation: floatParticleB 11s ease-in-out infinite alternate;
}
@keyframes floatParticleA {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-20px, 25px); }
}
@keyframes floatParticleB {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(15px, -20px); }
}

.about__head {
  text-align: center;
  margin-bottom: 50px;
}
.about__catch {
  max-width: 880px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--color-blue-dark);
  letter-spacing: .04em;
  line-height: 1.5;
  text-shadow: 0 1px 0 #fff, 0 0 24px rgba(255, 255, 255, 0.8);
}
.about__catch em {
  font-style: normal;
  color: var(--color-pink);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}
.about__text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 14px rgba(255, 255, 255, 0.7);
}

/* Override the section-head accent for readability against image */
.about .section-head__en {
  color: var(--color-pink-dark);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
.about .section-head__ja {
  color: var(--color-blue-dark);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .about::before,
  .about__inner::before,
  .about__inner::after { animation: none; }
}

/* ===============================================================
   Services
=============================================================== */
.services {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-md, 0 16px 36px rgba(10, 77, 140, 0.16));
  transform: translateY(-4px);
}
.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--color-blue-light);
  isolation: isolate;
}
.service-card__media-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.15);
  opacity: 0.65;
  z-index: 0;
}
.service-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product shots (white-background photos) — show contained instead of cropped */
.service-card__media--product img {
  object-fit: contain;
  padding: 14px;
  mix-blend-mode: normal;
}
.service-card__media--product {
  background: #fff;
}
.service-card__media--product .service-card__media-bg { display: none; }
.service-card__media--product::after { display: none; }

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(10, 77, 140, 0.12), transparent 50%);
  pointer-events: none;
}
.service-card__body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.service-card__en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--color-pink);
  font-weight: 600;
  margin-bottom: 14px;
}
.service-card__desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-blue);
  transition: all .25s var(--ease);
}
/* カード全体をクリック可能に（ストレッチリンク） */
.service-card__more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.service-card__more:hover {
  color: var(--color-pink);
  border-color: var(--color-pink);
  gap: 12px;
}

/* ===============================================================
   Works (placeholder ribbon)
=============================================================== */
.works {
  padding: 100px 0;
  background:
    /* 1) gradient tint (~90% opaque → lets image show through at ~10%) */
    linear-gradient(135deg, rgba(6, 57, 104, 0.92) 0%, rgba(10, 77, 140, 0.88) 100%),
    /* 2) faint background image (pipes texture) */
    url('../img/service-plumbing.jpg') center / cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.works::before {
  content: "WORKS";
  position: absolute;
  bottom: -40px;
  left: -20px;
  font-family: var(--font-en);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  user-select: none;
}
.works__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.works__heading .section-head__en { color: #ff99dd; }
.works__heading .section-head__ja { color: #fff; text-align: left; }
.works__heading .section-head { text-align: left; margin-bottom: 24px; }
.works__heading .section-head__ja::after { margin-left: 0; margin-right: 0; }
.works__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.works__media {
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.works__media img { width: 100%; height: 100%; object-fit: cover; }
.works .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.works .btn--ghost:hover {
  background: var(--color-pink);
  border-color: var(--color-pink);
  color: #fff;
}

/* ===============================================================
   News
=============================================================== */
.news { padding: 120px 0; }
.news__list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}
.news__item {
  display: grid;
  grid-template-columns: 96px 120px 110px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--color-border);
}
.news__thumb {
  display: block;
  width: 96px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news__date {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue);
}
.news__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .08em;
  text-align: center;
  background: var(--color-pink-light);
  color: var(--color-pink-dark);
}
.news__cat--blue { background: var(--color-blue-light); color: var(--color-blue); }
.news__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

/* ===============================================================
   Company
=============================================================== */
.company { padding: 120px 0; background: var(--color-bg-soft); }
.company__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.company__heading .section-head { text-align: left; margin-bottom: 30px; }
.company__heading .section-head__ja::after { margin-left: 0; margin-right: 0; }
.company__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-sub);
  margin-bottom: 30px;
}
.company__table {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 32px;
  box-shadow: var(--shadow-sm);
}
.company__table dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
  align-items: start;
}
.company__table dl:last-child { border-bottom: 0; }
.company__table dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: .04em;
}
.company__table dd {
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
}

/* ===============================================================
   Sponsor banner (日大藤沢高校サッカー部)
=============================================================== */
.sponsor-banner {
  padding: 28px 0;
  background: #fff;
}
.sponsor-banner__link {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.sponsor-banner__link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.sponsor-banner__link img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .sponsor-banner { padding: 20px 0; }
  .sponsor-banner__link { max-width: 92%; }
}

/* ===============================================================
   CTA / Contact
=============================================================== */
.cta {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  background: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 102, 204, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(10, 77, 140, 0.08), transparent 40%);
}
.cta__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta__en {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--color-pink);
  font-weight: 600;
  margin-bottom: 18px;
}
.cta__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-blue-dark);
  margin-bottom: 24px;
  letter-spacing: .04em;
}
.cta__text {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 40px;
}
.cta__methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.cta-method {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
}
.cta-method__label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--color-pink);
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-method__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin-bottom: 14px;
}
.cta-method__tel {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.cta-method__sub {
  font-size: 12px;
  color: var(--color-text-sub);
}
.cta-method .btn { width: 100%; margin-top: 6px; }

/* ===============================================================
   Footer
=============================================================== */
.site-footer {
  background: var(--color-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 0;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer__logo img {
  height: 44px;
  width: auto;
}
.site-footer__tagline {
  font-size: 14px;
  color: var(--color-pink);
  margin: 0 0 16px;
  letter-spacing: .02em;
}
.site-footer__address {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer__address a { color: #fff; }
.site-footer__address a:hover { color: var(--color-pink); }

.site-footer__nav-wrap {
  display: contents;
}
.site-footer__nav h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}
.site-footer__nav h3::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--color-pink);
}
.site-footer__nav ul li { margin-bottom: 10px; }
.site-footer__nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer__nav a:hover { color: var(--color-pink); }

.site-footer__copyright {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-en);
  letter-spacing: .05em;
}

/* ===============================================================
   Animation utilities
=============================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ===============================================================
   Responsive
=============================================================== */
@media (max-width: 1280px) {
  .header-contact { display: none; }
  .global-nav__link { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .section { padding: 70px 0; }
  .about, .services, .news, .company { padding: 80px 0; }

  .section-head { margin-bottom: 28px; }
  .section-head__ja { font-size: 24px; }
  .section-head__ja::after { margin-top: 10px; width: 36px; }

  .site-header__inner { padding: 0 16px; gap: 16px; }
  .site-logo img { height: 36px; }
  .menu-toggle { display: block; margin-left: auto; }
  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #fff;
    padding: 24px 24px 60px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .global-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
  }
  .global-nav__item {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--color-border);
  }
  .global-nav__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 8px;
    font-size: 16px;
    height: auto;
    flex: 1;
  }
  .global-nav__link .en { margin-top: 0; font-size: 11px; }
  .global-nav__link::before { display: none; }
  .has-sub > .global-nav__link .ja::after { display: none; }

  /* Parent row with sub-toggle button */
  .global-nav__item.has-sub > .global-nav__link {
    padding-right: 60px;
  }
  .global-nav__sub-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    font-size: 22px;
    font-weight: 300;
    color: var(--color-blue);
    background: transparent;
    transition: transform .3s var(--ease), background .2s var(--ease);
    cursor: pointer;
    z-index: 2;
  }
  .global-nav__sub-toggle:hover { background: var(--color-bg-soft); }
  .has-sub.is-sub-open > .global-nav__sub-toggle { transform: rotate(45deg); }

  /* Submenu as inline collapsible (not floating) */
  .global-nav__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: var(--color-bg-soft);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  /* Override PC's hover/focus-within transform so it doesn't shift left on mobile */
  .global-nav__item.has-sub:hover > .global-nav__sub,
  .global-nav__item.has-sub:focus-within > .global-nav__sub {
    transform: none;
    left: auto;
  }
  .global-nav__sub::before { display: none; }
  .has-sub.is-sub-open > .global-nav__sub {
    max-height: 500px;
    padding: 6px 0;
  }
  .global-nav__sub a {
    padding: 14px 16px 14px 36px;
    font-size: 14px;
    border-radius: 0;
    white-space: normal;
  }
  .global-nav__sub a::before { left: 20px; }
  .global-nav__sub a:hover { padding-left: 40px; }

  /* CTA button: stand-out, full-width style at end of drawer */
  .global-nav__item--cta {
    margin: 28px 8px 0;
    border-bottom: 0;
  }
  .global-nav__cta {
    justify-content: center !important;
    padding: 18px 24px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
  }

  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-card__body { padding: 16px 14px 18px; }
  .service-card__title { font-size: 14px; letter-spacing: 0; line-height: 1.4; }
  .service-card__en { font-size: 10px; margin-bottom: 10px; letter-spacing: .15em; }
  .service-card__desc { font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
  .service-card__more { font-size: 11px; }

  .works__inner { grid-template-columns: 1fr; gap: 36px; }
  .company__inner { grid-template-columns: 1fr; gap: 36px; }

  .news__item {
    grid-template-columns: 84px 1fr;
    gap: 6px 14px;
    align-items: center;
    padding: 16px 8px;
  }
  .news__thumb {
    grid-row: 1 / span 3;
    align-self: center;
    width: 84px;
    height: 60px;
  }
  .news__cat { justify-self: start; }

  .cta__methods { grid-template-columns: 1fr; gap: 16px; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
}

@media (max-width: 480px) {
  .site-logo img { height: 30px; }
  .btn { min-width: 0; width: 100%; padding: 14px 24px; font-size: 14px; }
  .company__table { padding: 0 20px; }
  .company__table dl { grid-template-columns: 90px 1fr; gap: 8px; padding: 14px 0; }
}

/* ===============================================================
   WordPress 追加分
   (お知らせ行のリンク化 / 管理バー対応 / 空状態)
=============================================================== */
/* お知らせの各行はリンク (投稿詳細へ) なのでホバー演出あり */
a.news__item { color: inherit; }
a.news__item:hover .news__title { color: var(--color-blue); }
.news__item .news__cat { justify-self: start; }
.news__more { margin-top: 36px; text-align: center; }
.news__empty,
.works__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--color-text-sub);
}

/* ログイン中の管理バー分だけ固定ヘッダーを下げる */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
