html, body {
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  position: relative;
}

.hero {
  position: relative;
  min-height: 90vh;
  height: 90vh;
  max-height: 90vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-left-panel {
  width: 35%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: white;
  background-color: transparent;
}

.hero-content {
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.85);
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -150px;
  width: 500px;
  height: 500px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  z-index: 0;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 7%;
  right: -180px;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  background: transparent;
  z-index: 0;
}

.hero-overlay {
  display: none;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-content p {
  font-size: 1.5rem;
}

.hero-nav {
  position: absolute;
  top: 0;
  left: 15%;
  width: 65%;
  padding: 1.5rem 2rem 0 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  z-index: 3;
  background: transparent;
}

.hero-nav a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.hero-nav a:hover {
  color: #ffdd57;
}

.hero-nav a:hover::after {
  width: 100%;
}

.hero-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.group-home-section {
  position: relative;
  padding: 10vh 5vw;
  background-color: #f9f9f9;
  overflow: hidden;
  font-family: "Hiragino Mincho ProN", serif;
  min-height: 45vh;
  height: auto;
}

.group-home-wrapper,
.company-wrapper,
.address-osaka-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.group-home-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  position: relative;
  flex-wrap: wrap;
}

.group-home-content {
  display: flex;
  flex-direction: column;
}

.background-text {
  position: absolute;
  font-size: 10vw;
  color: rgba(0, 0, 0, 0.05);
  bottom: 10%;
  left: 5%;
  font-weight: bold;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.group-home-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2rem;
  line-height: 2.5rem;
  margin-right: 2rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-bottom: 1.5rem;
  text-align: center;
}
.group-home-title.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.group-home-subtitle,
.group-home-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  max-width: 650px;
  font-weight: normal;
}

.group-home-subtitle {
  margin-bottom: 1rem;
  text-indent: 0;
  max-width: 650px;
}

.group-home-subtitle::first-letter {
  font-size: 5em;
  font-weight: bold;
  color: #333;
  float: left;
  margin-right: 6px;
  line-height: 1;
  display: inline-block;
  vertical-align: text-top;
}

.group-home-tags-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.group-home-tags-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.group-home-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
}

.group-home-tag {
  background-color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 1.5rem;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

.company-section {
  background-color: #ffffff;
  padding: 10vh 5vw;
  font-family: "Hiragino Mincho ProN", serif;
  position: relative;
  min-height: 30vh;
  height: auto;
}

.company-wrapper {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
}

.company-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

.company-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  max-width: 650px;
}

.company-description::first-letter {
  font-size: 5em;
  font-weight: bold;
  color: #333;
  float: left;
  margin-right: 6px;
  line-height: 1;
}

.company-background-text {
  position: absolute;
  font-size: 10vw;
  color: rgba(0, 0, 0, 0.04);
  bottom: 10%;
  right: 5%;
  font-weight: bold;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-logo {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  height: 60px;
  z-index: 10;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
}

.business-intro-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 5vh 2vw;
  background-color: #ddd;
  color: #fff;
  font-family: "Hiragino Mincho ProN", serif;
  min-height: 60vh;
  height: auto;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
  max-width: 1900px;
  margin: 0 auto;
}

.business-intro-box {
  width: 30%;
  min-width: 290px;
  max-width: 290px;
  height: auto;
  overflow: hidden;
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  position: relative;
}

.business-intro-box:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.business-intro-box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: filter 0.5s ease-in-out;
}

.business-intro-box:hover img {
  filter: brightness(1.1);
  transition: filter 0.5s ease-in-out;
}

.business-intro-content {
  padding: 1rem;
  text-align: center;
  background: white;
  color: #333;
  font-family: "Hiragino Mincho ProN", serif;
}

.business-intro-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.3rem;
}

.business-intro-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
}

.business-intro-label {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 5;
  margin-bottom: 2rem;
}

.business-intro-label span {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  display: inline-block;
  position: relative;
}

.business-intro-label span::before,
.business-intro-label span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background-color: #999;
}

.business-intro-label span::before {
  right: 100%;
  margin-right: 12px;
}

.business-intro-label span::after {
  left: 100%;
  margin-left: 12px;
}

.business-intro-overlay-text {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 2rem;
  font-family: "Hiragino Mincho ProN", serif;
  color: rgba(0, 0, 0, 0.6);
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 2.5rem;
  pointer-events: none;
}

.business-intro-overlay-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.business-intro-overlay-text {
  position: absolute;
  top: 40px;
  left: 40px;
  font-size: 2.4rem;
  font-family: "Hiragino Mincho ProN", serif;
  color: rgba(0, 0, 0, 0.6);
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 2.6rem;
}

.business-intro-overlay-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 80px;
  background: rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.business-intro-overlay-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}


.business-intro-header {
  position: absolute;
  top: 54%;
  left: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  pointer-events: none;
  margin-bottom: 2rem;
  transform: translate(-50%, -50%);
}

.business-intro-focus-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2.4rem;
  font-family: "Hiragino Mincho ProN", serif;
  color: rgba(0, 0, 0, 0.7);
  line-height: 2.6rem;
  text-align: center;
  margin: 0.5rem 0;
}

.business-intro-line {
  width: 1px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.3);
}

.left-line {
  margin-bottom: 0.5rem;
}

.right-line {
  margin-top: 0.5rem;
}

.business-intro-title-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.business-intro-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  font-family: "Hiragino Mincho ProN", serif;
}

.fixed-circle {
    position: absolute;
    top: 48%;
    right: -11%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: transparent;
    z-index: 10;
    opacity: 1;
    width: 12vw;
    height: 12vw;
    pointer-events: none;
    min-width: 100px;
    min-height: 100px;
    max-width: 220px;
    max-height: 220px;
}

.fixed-circle2 {
  position: absolute;
  top: 39%;
  left: 5%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  z-index: 10;
  opacity: 1;
  width: 15vw;
  height: 15vw;
  pointer-events: none;
  min-width: 120px;
  min-height: 120px;
  max-width: 280px;
  max-height: 280px;
}

.address-osaka-section {
  position: relative;
  background-color: #f5f5f5;
  padding: 10vh 5vw;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  min-height: 100vh;
  height: auto;
}

.address-osaka-circle {
  position: absolute;
  min-width: 480px;
  min-height: 480px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 10%;
  z-index: 1;
  transform: translateX(-50%);
  transform: translateY(-50%);
}

.address-osaka-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  font-family: "Hiragino Mincho ProN", serif;
}

.address-osaka-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 2.8rem;
  color: #222;
}

.address-osaka-info {
  position: absolute;
  right: 3vw;
  top: 25%;
  text-align: center;
  transform: translateY(-50%);
}

.address-osaka-heading {
  font-size: 3rem;
  font-weight: bold;
  color: #111;
  border-left: 2px solid #333;
  padding-left: 1rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin-bottom: 1rem;
  margin-left: 0;
  position: relative;
  left: 12rem;
}

.address-osaka-heading a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.address-osaka-heading a:hover {
  color: #fff;
  transition: color 0.5s ease;
  text-decoration: none;
}

.address-osaka-subtext {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 1rem;
  color: #444;
  margin-left: 0;
  position: relative;
  left: 12rem;
}

.address-osaka-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  max-width: 600px;
  margin-top: 2rem;
}

/* Replaced .address-osaka-bg and .radar-circle with container styles */
.osaka-map-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 800px;
  height: auto;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.osaka-map-container img.address-osaka-bg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.osaka-map-container .radar-circle {
  position: absolute;
  top: 32%;
  right: 25%;
  width: 80px;
  height: 80px;
  max-width: 70px;
  max-height: 80px;
  min-width: 80px;
  min-height: 80px;
  border: 3px solid rgba(255, 0, 0);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRadar 2.5s infinite ease-out;
  z-index: 2;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .radar-circle {
    width: 60px;
    height: 60px;
    margin-right: 3vw;
    top: 50%;
  }
}

@keyframes pulseRadar {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@media screen and (max-width: 768px) {
  .address-osaka-section {
    flex-direction: column;
    align-items: center;
  }

  .address-osaka-info {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-top: 1rem;
  }

  .address-osaka-heading,
  .address-osaka-subtext {
    left: auto;
    text-align: center;
  }
}

.company-info-section {
  padding: 8vh 10vw;
  font-family: "Hiragino Mincho ProN", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-info-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .company-info-wrapper {
    flex-direction: column;
  }
  .company-map-box {
    margin-top: 2rem;
    max-width: 100%;
  }
  .company-info-grid {
    max-width: 100%;
  }
}

.company-map-box {
  width: 100%;
  height: 100%;
  flex: 1 1 35%;
  max-width: 35%;
  min-height: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0;
}

.company-map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

.company-info-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  flex: 1 1 60%;
  max-width: 60%;
}

.company-info-card {
  background-color: #7ebea5;
  color: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-info-card h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.3rem;
}

.company-info-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-section {
  background-color: #f3f3f3;
  text-align: center;
  padding: 4rem 1rem 2rem;
  font-family: "Hiragino Mincho ProN", serif;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-wrapper a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-wrapper a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.footer-logo {
  height: 80px;
  margin-bottom: 0.1rem;
}

.footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
