html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: serif;
  text-align: center;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  padding: 10px 0;
}

.navbar {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area .logo {
  height: 72px;
}

#navbar {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

#navbar li a {
  position: relative;
  font-weight: 600;
  color: #f5feff;
  text-decoration: none;
  padding: 10px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

#navbar li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: lightsteelblue;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#navbar li a:hover {
  color: lightsteelblue;
}

#navbar li a:hover::after {
  transform: scaleX(1);
}

/*  Hero */
section.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#bg-pic,
#snow-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#bg-pic {
  z-index: -2;
}

#bg-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(80%);
}

#snow-effect {
  z-index: -1;
}


#title {
  position: relative;
  color: ghostwhite;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;

  h1 {
    margin: 0 0 36px 0;
    font-family: Verdana, "Trebuchet MS", sans-serif;
    font-size: clamp(2rem, 6vw, 5em);
    font-weight: bold;
    font-style: italic;
  }

  h2 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    text-shadow: 1px 1px 1px slategray;
    margin-top: 0;
  }
}

/* Main */
main {
  font-family: serif;
}

.main-block {
  background-color: rgba(248, 248, 255, 0.95);
  margin-bottom: 200px;
}

.main-content {
  margin: 0 auto;
  max-width: 540px;
  padding: 60px 20px;
  text-align: left;
}

.main-content h2 {
  color: rgb(54, 62, 70);
  margin-bottom: 1em; /* h2とpの間の調整 */
  word-break: break-word;
}

.main-content p {
  color: lightslategray;
  line-height: 1.6; /* 読みやすさのため行間を調整 */
  margin-bottom: 1em; /*段落間のスペース*/
  word-break: break-word;
}

#contact {
  padding: 30px 20px 60px;
  text-align: center;
  color: ghostwhite;
  background-color: #282E34;

  a {
    color: ghostwhite;
  }
}

#contact h2 {
  font-size: 2em;
  margin-bottom: 24px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1em;
}

.contact-info .company-name {
  font-size: 1.1em;
  line-height: 1.8;
}

.contact-info .phone,
.contact-info .postal-code,
.contact-info .email {
  font-family: monospace;
}

/* Footer */
footer {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  color: ghostwhite;
  padding: 20px 20px;
  font-size: 0.9em;
  font-family: serif;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.footer-links li a {
  color: ghostwhite;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: lightcyan;
}
