body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: #3e3e3e;
  font-family: "Noto Sans", sans-serif;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
address {
  font-family: "Noto Sans", sans-serif;
}
main {
  flex: 1 0 auto; /* This will allow the main content to grow and shrink as needed, taking up any remaining space */
}
.company-info li {
  text-indent: -1em;
  padding-left: 1em;
}
footer {
  flex-shrink: 0; /* This will prevent the footer from shrinking, ensuring it stays at the bottom */
}

i {
  font-style: inherit;
}

.tit {
  text-align: left;
}

.txt-r {
  text-align: right;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.4);
  }
}

.top {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

.top .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url(images/mainview.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  animation: zoom 30s infinite alternate;
  overflow-x: hidden;
}

.statement p {
  opacity: 0;
  animation: fadeIn 2s ease-in 0s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.linkbtn {
  text-decoration: none;
  background: #b3013b;
  color: #fff;
  display: inline-block;
  border: solid 1px #fff;
  padding: 10px 25px;
  border-radius: 5px;
  opacity: 0;
  animation: btnFadeIn 2s forwards;
  animation-delay: 2s;
}
.linkbtn:hover {
  background: #b3013bb3;
  transition: 0.4s;
}

@keyframes btnFadeIn {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  }
}

.linkbtn:hover {
  animation: btnFadeIn 0.5s forwards;
}

.logo {
  width: 150px;
}

nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;

  padding: 20px;
  color: #fff;
}
#sub nav {
  color: #515151;
}

nav div:nth-child(2) {
  font-size: 14px;
  position: relative;
  z-index: 8;
}

nav div:first-child {
  margin-right: 30px;
  position: relative;
  z-index: 9;
}

nav div:last-child {
  margin-left: auto;
  position: relative;
  z-index: 999;
}

nav div:last-child a {
  text-decoration: none;
  color: #fff;
  display: block;
  border: solid 1px #fff;
  padding: 10px 25px;
  border-radius: 5px;
}

nav div:last-child a:hover {
  transition: 0.8s;
  background: #b3013b;
}

#sub nav div:last-child a {
  color: #fff;
  border: solid 1px #fff;
  background: #b3013b;
}

#sub nav div:last-child a:hover {
}

.statement {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin-top: 100px;
  position: relative;
  z-index: 99;
}

.statement p {
  font-size: 3vw;
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  letter-spacing: 0.02em;
  font-weight: 500;
  line-height: 110%;
}

#top main {
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url(images/real-estate-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main {
  width: 1000px;
  margin: 0 auto;
  padding: 50px 0;
}

h1 {
  border-bottom: solid 3px skyblue;
  position: relative;
  display: inline-block;
}

h1:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #ffc778;
  bottom: -3px;
  width: 30%;
}

h2 {
  line-height: 1.4;
}

h3 {
  line-height: 1.4;
}

h4 {
  position: relative;
  padding-left: 1.2em;
  line-height: 1.4;
}

h4:before {
  font-family: "Font Awesome 5 Free";
  content: "\f00c";
  font-weight: 900;
  position: absolute;
  font-size: 0.8em;
  left: 0;
  top: 5px;
  color: #2a2a4b;
  font-weight: 900;
}

footer {
  width: 100%;
  background: #333333;
}

.footer {
  width: 1000px;
  margin: 0 auto;
  padding: 50px 30px 50px 30px;
  color: #fff;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-around;
  align-items: flex-start;
}

.footer img {
  width: 150px;
}

footer ul {
  list-style-type: none;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-content: flex-start;
}

footer ul li {
  line-height: 170%;
}
footer ul li:before {
  content: "・";
}

footer ul li ul li {
  margin: 0px 0 0px 0;
}

footer ul li a {
  color: white;
  text-decoration: none;
}

footer ul li a:hover {
  color: #ddd;
}

.lastfooter {
  padding: 3px 0;
  background: #d1d1d1;
}
.lastfooter p {
  text-align: center;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 14px;
}

#top .global {
  display: none;
}

.global {
  background-color: #333;
}

.global ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
}

.global ul li {
  position: relative;
  color: #fff;
  width: 200px;
  text-align: center;
}

.global ul li a {
  color: white;
  padding: 15px;
  display: block;
  text-decoration: none;
}

.global ul li a:hover,
.global ul ul li a:hover {
  background-color: #444;
}

.global ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  list-style-type: none;
  padding: 0;
  margin: 0;
  min-width: 100%;
}

.global ul li ul li {
  display: block;
  width: 100%;
}

.global ul li:hover ul {
  display: block;
}

.company-info {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.company-info th {
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 10px;
}

.company-info td {
  border: 1px solid #ddd;
  padding: 10px;
  color: #333;
}

.company-info td ul {
  list-style-type: disc;
  list-style-position: inside;
  padding: 0;
  margin: 0;
}

#form label {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
  color: #333;
}

#form input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}

#form input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #b3013b;
  box-shadow: 1px 1px 5px rgba(179, 1, 59, 0.5);
}

#form textarea {
  resize: vertical;
  min-height: 100px;
}

#form button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #b3013b;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#form button:hover {
  background-color: #8a012c;
}

#form h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

#form .error {
  color: #b3013b;
  font-size: 14px;
  background-color: #f9d6d5;
  padding: 10px;
  margin-bottom: 20px;
}

#form .error li {
  margin-bottom: 5px;
  list-style: none;
}

#form p {
  margin-bottom: 10px;
  color: #333;
}

#form button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #b3013b;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  margin-right: 10px;
  margin-bottom: 20px;
}

#form button:hover {
  background-color: #8a012c;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1;
}

.hamburger span {
  width: 2rem;
  height: 0.25rem;
  background-color: #333;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.global.active {
  transform: translateX(0);
}

#sub table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#sub table th,
#sub table td {
  padding: 10px;
  border: 1px solid #fff;
}

#sub table th {
  background-color: #8a012c;
  text-align: left;
  color: #fff;
}

#sub table th,
#sub table td {
}

#sub table tbody tr {
  background-color: #fff;
}

#sub table tbody tr:nth-child(odd) {
  background-color: #8a012c08;
}

#sub table td:first-child {
  font-weight: bold;
}

#sub table td:last-child {
  /* text-align: center; */
}

#sub table th:first-child,
#sub table td:first-child {
  border-left: none;
}

#sub table th:last-child,
#sub table td:last-child {
  border-right: none;
}

#sub table thead th {
  border-bottom: 2px solid #fff;
}

#sub table tfoot td {
  border-top: 2px solid #fff;
}

#sub table tfoot td:first-child {
  font-weight: bold;
}

.pc_on {
  display: block;
}
.sp_on {
  display: none;
}

@media (max-width: 768px) {
  .pc_on {
    display: none;
  }
  .sp_on {
    display: block;
  }
  body {
    overflow-x: hidden;
    width: 100%;
  }
  #top main {
    background: linear-gradient(
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.9)
      ),
      url(images/real-estate-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
    overflow-x: hidden;
    background-position: center;
    position: relative;
    z-index: 100;
  }

  .m_flex {
    display: block !important;
  }
  .m_flex > div {
    width: 100% !important;
  }
  .m_flex > div h2 {
    margin: 0;
  }
  .mg_img {
    width: 100%;
    height: auto;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 999;
  }

  .global {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  .hamburger.active ~ .global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    z-index: 9;
  }

  .global ul li ul {
    display: block;
    position: relative;
    top: 100%;
    left: 0px;
    background-color: #676767;
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    min-width: 100%;
  }

  .top {
    position: relative;
    height: 100vh;
    z-index: 80;
  }

  #top header {
    /* background-size: contain; */
    /* height: 100vw; */
    width: 100%;
    overflow-x: hidden;
  }

  .logo {
    width: 90px;
  }

  #sub .header-box {
    height: 80px;
  }

  #sub header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 100;
  }

  nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 20px;
    color: #fff;
    position: relative;
    z-index: 999;
  }
  #sub nav {
    color: #515151;
  }

  nav div:first-child {
    margin-right: 10px;
  }

  nav div:nth-child(2) {
    font-size: 12px;
  }

  nav div:last-child {
    /* display: none; */
  }

  nav div:last-child a {
    display: none;
  }

  .statement p {
    font-size: 5vw;
    line-height: 200%;
    margin-bottom: 50px;
  }

  .main,
  .footer {
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
  }
  .footer img {
    width: 100px;
  }
  .footer {
    font-size: 13px;
    display: flex;
    flex-direction: column;
  }

  #top .global {
    display: block;
    /* position: relative; */
    z-index: 100;
  }

  .global ul {
    list-style-type: none;
    padding: 0;
    margin: 100px 0 0 0;
    display: block;
    text-align: right;
  }
  .global ul li {
    position: relative;
    color: #fff;
    width: 100%;
    text-align: center;
  }
  .global {
    background-color: #8d8d8d;
  }

  #sub main {
    margin-top: 80px;
  }
}

.ev_imgs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.ev_imgs img {
  width: 50%;
  padding: 5px;
  box-sizing: border-box;
}
.m_flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
}
.m_flex > div {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-end;
  align-items: flex-start;
  flex-direction: column;
}

.mg_img {
  height: 330px;
}

/* 不動産仲介ページ用スタイル */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.service-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-item h4 {
  color: #b3013b;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.service-item h4 i {
  margin-right: 10px;
  color: #b3013b;
  font-size: 20px;
}

.service-item p {
  line-height: 1.6;
  color: #333;
}

.area-info {
  background-color: #f0f8ff;
  padding: 20px;
  border-left: 4px solid #b3013b;
  margin: 20px 0;
  border-radius: 4px;
}

.area-info strong {
  color: #b3013b;
  font-size: 18px;
}

.organization-list {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #e0e0e0;
  list-style: none;
}

.organization-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
  color: #333;
  font-weight: 500;
}

.organization-list li:before {
  content: "●";
  color: #b3013b;
  position: absolute;
  left: 0;
  font-size: 14px;
  top: 0;
}

.organization-list li:last-child {
  margin-bottom: 0;
}

.contact-section {
  background-color: #f0f8ff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-top: 40px;
  border: 1px solid #d0e7ff;
}

.contact-section h3 {
  color: #b3013b;
  margin-bottom: 15px;
  font-size: 20px;
}

.contact-section p {
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-list {
    gap: 15px;
  }

  .service-item {
    padding: 15px;
  }

  .service-item h4 {
    font-size: 16px;
  }

  .service-item h4 i {
    font-size: 18px;
  }

  .area-info,
  .organization-list,
  .contact-section {
    padding: 15px;
  }

  .organization-list li {
    padding-left: 18px;
  }

  .contact-section h3 {
    font-size: 18px;
  }
}
