/* css/top/style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

br.sp {
	display: none;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	background-color: #fff;
	color: #000;
	line-height: 2.0;
	font-feature-settings: "palt";
}

header#hero {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: url('../../images/top/bg.webp') no-repeat center center/cover;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: filter 0.3s ease-out;
	text-align: center;
}

#hero.blur {
  filter: blur(8px);
}

#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  z-index: 2;
}

main {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,1);
padding-top: 150vh;
  opacity: 0;
  transition: opacity 1s ease-out;
}

header h1 img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

section:first-of-type {
	padding-top: 5rem;
}

section:last-of-type {
	padding-bottom: 5rem;
}

section p {
	margin-bottom: 1.2rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 1rem;
}

.sub-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #000;
}

.company-info {
  margin-top: 1rem;
}

.company-info dl {
  display: flex;
  flex-wrap: wrap;
}

.company-info dt,
.company-info dd {
  padding: 0.5rem 0;
}

.company-info dt {
  width: 25%;
  font-weight: bold;
  color: #000;
}

.company-info dd {
padding: 0.5rem 0 1.5rem;
  width: 75%;
  color: #000;
}

.company-info dd > p:last-of-type {
	margin-bottom: 0;
}

a {
  color: #000;
  text-decoration: underline;
}

footer {
	text-align: center;
	padding: 2rem 0;
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	br.sp {
		display: block;
	}
  header h1 img {
    width: 80%;
    height: auto;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .sub-title {
    font-size: 1.4rem;
  }

  .company-info dt,
  .company-info dd {
    width: 100%;
  }
}

/* スクロールダウンの位置 */
.scroll {
  padding-top: 60px;
  position: absolute;
  text-align: center;
	bottom: 35px;
	left: calc(50% - 10px);
}
@media (max-width: 768px) {
.scroll {
	bottom: 15vh;
}
}
/* 矢印のアニメーション部分 */
.scroll::before {
  animation: scroll 2s infinite;
  border-bottom: 3px solid #FFF;
  border-left: 3px solid #FFF;
  content: "";
  height: 20px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}
/* 矢印のアニメーション */
@keyframes scroll {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: rotate(-45deg) translate(-20px, 20px);
  }
  100% {
    opacity: 0;
  }
}

p.modal-trigger {
	text-decoration: underline;
	cursor: pointer;
}

p.modal-trigger .icon-search {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  vertical-align: middle;
  background-image: url("../../images/top/icon_search.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	box-sizing: border-box;
	padding: 20px;
}

.modal-content {
  position: relative;
  max-width: 800px;
  max-height: 600px;
  animation: fadeIn 0.3s ease;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}