@import url('https://cdn.jsdelivr.net/npm/destyle.css@3.0.2/destyle.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Red+Hat+Display:wght@300..900&display=swap');

/* =============================================
   共通設定
   ============================================= */
:root {
  --fs-xs: 0.75rem; 
  --fs-s: 0.875rem; 
  --fs-m: 1rem; 
  --fs-l: 1.25rem; 
  
  --max-width: 48rem;
  --dynamic-padding: clamp(1.5rem, 0.227rem + 6.36vw, 5rem);
  --side-padding: clamp(1rem, 5vw, 1.5rem);
  --header-height: clamp(3.5rem, 5.5vw, 5rem);

  --text: #4a5457;
  --primary: #00699a;
  --secondary: #008dd5;
  --accent: #fede4d;
  --background: #fff;
  --surface: #edf4f6;

  --ff-number: 'Red Hat Display', sans-serif;
  --ff-awesome: 'Font Awesome 6 Free';
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background-color: var(--surface);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--fs-m);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.0625rem;
}

header,
main,
footer {
  width: 100%;
}

/* =============================================
   見出し・タイポグラフィ
   ============================================= */
h1,
.company > a {
  font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1rem;
}

h2 {
  margin-block-end: clamp(1.5rem, 1.136rem + 1.82vw, 2.5rem);
  color: var(--background);
  font-size: clamp(1.5rem, 0.773rem + 3.64vw, 3.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1rem;
  text-align: center;
  text-shadow: 0 0 0.5rem rgba(0, 60, 90, 0.8);
  white-space: nowrap;
}

h3,
h5,
h6 {
  color: var(--primary);
  font-size: clamp(1.25rem, 1.068rem + 0.91vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1rem;
  text-align: center;
}

h3,
h5 {
  margin-block-end: clamp(1.5rem, 1.136rem + 1.82vw, 2.5rem);
}

/* =============================================
   Header
   ============================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding-inline: var(--dynamic-padding);
  background-color: var(--background);
}

/* =============================================
   Top (Main Visual)
   ============================================= */
@keyframes zoomAndClear {
  0% {
    filter: blur(1rem);
    transform: scale(1.1);
  }
  100% {
    filter: blur(0);
    transform: scale(1);
  }
}

.top {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100dvh - var(--header-height));
  min-height: -webkit-fill-available;
  padding-inline: var(--dynamic-padding);
  overflow: hidden;
}

.top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 105, 153, 0.56) url('img/moving-service-sapporo.jpg') right / cover;
  background-blend-mode: overlay;
  animation: zoomAndClear 3s ease-out forwards;
}

.top > .top__container {
  max-width: var(--max-width);
}

.top__content {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: fit-content;
  gap: clamp(1.5rem, 1.136rem + 1.82vw, 2.5rem);
  margin-top: 2rem;
  margin-inline: auto;
}

.top__content > div {
  flex: 1 1 auto; 
  text-align: center;
}

.top__content > div > img {
  width: 100%;
  max-width: 5rem;
}

.top__content > div > p {
  color: var(--background);
  font-size: clamp(0.938rem, 0.778rem + 0.8vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  margin-block-start: 0.75rem;
}

@media (max-width: 48rem) {
  .top::before {
    background-position: 72% 50%;
  }
}

/* =============================================
   Main
   ============================================= */
main {
  flex: 1;
}

/* サービス紹介 */
.service__intro {
  position: relative;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  margin-block-start: clamp(0.5rem, 0.318rem + 0.91vw, 1rem);
  margin-block-end: clamp(2.5rem, 1.591rem + 4.55vw, 5rem);
  padding-inline: var(--dynamic-padding);
  transform: translateX(-50%);
}

.service__title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-inline-start: clamp(-10.5rem, -7.5rem, -5.45vw);
  margin-block-end: 0;
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.75rem);
  line-height: 1.4;
}

.service__title img {
  flex-shrink: 0;
  width: clamp(7.5rem, 6.409rem + 5.45vw, 10.5rem);
  height: auto;
}

.service__title span {
  text-align: center;
}

.service__container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  width: 100%;
  margin-block-start: clamp(-0.25rem, 0.068rem + 0.91vw, -0.75rem);
}

.service__item {
  display: flex;
  flex-direction: column;
  flex: 1 1 18.75rem;
}

.service__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.service__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
  margin-block-start: 1rem;
  text-align: center;
}

.service__content > h4 {
  color: var(--primary);
  font-size: var(--fs-l);
  font-weight: 700;
}

.service__content > p {
  font-size: var(--fs-m);
  font-weight: 500;
  text-align: justify;
}

.service__list {
  font-size: var(--fs-m);
}

.service__list > li {
  display: flex;
  align-items: center;
  margin-block-end: 0;
  font-weight: 700;
  text-align: left;
}

.service__list > li::before {
  content: '\f058';
  margin-inline-end: 0.5rem;
  color: var(--primary);
  font-family: var(--ff-awesome);
  font-size: 1.5em;
  font-weight: 500;
}

@media (max-width: 51.25rem) {
  .service__item {
    flex: 0 0 100%;
  }
}

@media (max-width: 26.938rem) {
  .service__title {
    gap: 0.75rem;
    justify-content: flex-end;
    width: calc(100% + clamp(4rem, 3rem + 5vw, 7rem));
    margin-inline-start: clamp(-4rem, 3rem + 5vw, -7rem);
  }

  .service__title span {
    text-align: left;
  }
}

/* 企業情報 */
.corporate-info {
  margin-block: clamp(2.5rem, 1.591rem + 4.55vw, 5rem);
  padding-inline: max(var(--side-padding), calc((100% - var(--max-width)) / 2));
}

.info-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem; /* 戻しました */
}

.info-table > dl {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / 3;
  padding-block: 1rem;
  background-color: var(--background);
}

.info-table > dl > dt {
  padding-inline: clamp(1rem, 0.455rem + 2.73vw, 2.5rem);
  color: var(--primary);
  font-size: var(--fs-m);
  white-space: nowrap;
}

.info-table > dl > dd {
  padding-inline-end: clamp(1rem, 0.455rem + 2.73vw, 2.5rem);
  font-size: var(--fs-m);
}

/* =============================================
   Aside (CTA)
   ============================================= */
.contact-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-block: clamp(2.5rem, 1.591rem + 4.55vw, 5rem);
  padding-inline: max(var(--side-padding), calc((100% - 32rem) / 2));
  background-color: var(--background);
  color: var(--primary);
}

.contact-cta > p {
  font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
  font-weight: 700;
}

.contact-cta > ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  margin: 1rem auto 1rem 0;
}

.contact-cta > ul > li {
  display: flex;
  align-items: center;
  padding-block: 0.5rem;
  padding-inline: clamp(1rem, 0.818rem + 0.91vw, 1.5rem);
  background-color: var(--surface);
  color: var(--text);
  font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem);
  font-weight: 700;
}

.contact-cta > ul > li::before {
  content: '\f058';
  margin-inline-end: 0.5rem;
  color: var(--primary);
  font-family: var(--ff-awesome);
  font-size: 1.5em;
  font-weight: 500;
}

.contact-cta > img {
  position: absolute;
  bottom: 20%;
  left: 50%;
  z-index: 999;
  width: clamp(6rem, 2.545rem + 17.27vw, 15.5rem);
  transform: translateX(calc(20% + 2rem));
}

.contact-cta > .privacy-note {
  color: var(--text) !important;
  font-size: 0.875rem !important;
}


@media (max-width: 26.938rem) {
  .contact-cta > ul {
    width: 100%;
  }

  .contact-cta img {
    bottom: 22%;
    left: 68%;
    transform: none;
  }
}

/* =============================================
   Footer
   ============================================= */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding-block: 2.5rem 1.5rem;
  padding-inline: var(--dynamic-padding);
  background-color: var(--primary);
  color: var(--background);
}

footer > .company {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

footer > .tel {
  justify-self: end;
  gap: 0.375rem;
}

footer .lead {
  color: var(--accent);
}

footer > small {
  grid-column: 1 / 3;
  color: #cce1eb;
  font-size: var(--fs-xs);
  text-align: center;
}

@media (max-width: 47.938rem) {
  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  footer > .company,
  footer > .tel {
    justify-self: center;
    align-items: center;
  }
  footer > .tel > a {
    font-size: 1.75rem !important;
  }
  footer > small {
    grid-column: 1;
  }
}

/* =============================================
   Parts (Tel & Button)
   ============================================= */
.tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.tel > a {
  display: flex;
  align-items: center;
  color: inherit;
  font-family: var(--ff-number);
  font-size: clamp(1.125rem, 0.943rem + 0.91vw, 1.625rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.0775rem;
}

.tel > a::before,
.sticky-tel-button::before {
  content: '\f095';
  margin-inline-end: 0.25rem;
  font-family: var(--ff-awesome);
  font-size: 0.8em;
  font-weight: 900;
}

.tel > span {
  font-size: var(--fs-xs);
}

@media (min-width: 47.938rem) {
  .tel > a {
    pointer-events: none;
  }
}

.mobile-sticky-tel {
  display: none;
}

@media (max-width: 48rem) {
  .mobile-sticky-tel {
    position: fixed;
    bottom: -10rem;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: color-mix(in srgb, var(--background), transparent 56%);
    backdrop-filter: blur(0.5rem);
    box-shadow: 0 -0.25rem 1rem rgba(0, 105, 154, 0.16);
    opacity: 0;
    visibility: hidden;
    transition: bottom 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
  }

  .mobile-sticky-tel.is-show {
    bottom: 0;
    opacity: 1;
    visibility: visible;
  }

  .mobile-sticky-tel.is-footer {
    transform: translateY(100%);
    opacity: 0;
  }

  .mobile-sticky-tel .lead {
    color: var(--primary);
    font-size: var(--fs-s);
    font-weight: 700;
  }
}

.sticky-tel-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  min-height: 4rem;
  padding-inline: 1.5rem;
  background-color: var(--secondary);
  color: var(--background) !important;
  border-radius: 6.25rem;
  transition: 0.3s;
}

.sticky-tel-button:hover {
  background-color: var(--primary);
}

.pc-only { display: block; }
.sp-only { display: none; }

@media (max-width: 48rem) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}